diff options
Diffstat (limited to 'test/Sema/PR2919-builtin-types-compat-strips-crv.c')
-rw-r--r-- | test/Sema/PR2919-builtin-types-compat-strips-crv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/PR2919-builtin-types-compat-strips-crv.c b/test/Sema/PR2919-builtin-types-compat-strips-crv.c new file mode 100644 index 0000000..160ec4a --- /dev/null +++ b/test/Sema/PR2919-builtin-types-compat-strips-crv.c @@ -0,0 +1,7 @@ +// RUN: clang-cc -fsyntax-only %s + +typedef struct foo T0; +typedef const struct foo T1; + +int a0[__builtin_types_compatible_p(T0, + const T1) ? 1 : -1]; |