diff options
Diffstat (limited to 'test/Sema/warn-freestanding-complex.c')
-rw-r--r-- | test/Sema/warn-freestanding-complex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/warn-freestanding-complex.c b/test/Sema/warn-freestanding-complex.c new file mode 100644 index 0000000..a4d3f5b --- /dev/null +++ b/test/Sema/warn-freestanding-complex.c @@ -0,0 +1,4 @@ +// RUN: clang-cc -fsyntax-only -ffreestanding -pedantic -verify %s + +void foo(float _Complex c) { // expected-warning{{complex numbers are an extension in a freestanding C99 implementation}} +} |