Skip to content

Commit 9829d45

Browse files
authored
[libc++][test] Adds a test for a reserved name. (#131363)
This was discovered when using this name in #130500.
1 parent 616d104 commit 9829d45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/test/libcxx/system_reserved_names.gen.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@
119119
#define __acquire SYSTEM_RESERVED_NAME
120120
#define __release SYSTEM_RESERVED_NAME
121121
122+
// Android and FreeBSD use this for __attribute__((__unused__))
123+
#if !defined(__FreeBSD__) && !defined(__ANDROID__)
124+
#define __unused SYSTEM_RESERVED_NAME
125+
#endif
126+
122127
// These names are not reserved, so the user can macro-define them.
123128
// These are intended to find improperly _Uglified template parameters.
124129
#define A SYSTEM_RESERVED_NAME

0 commit comments

Comments
 (0)