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