Implement support for __extension__ which silences extwarnings in its
scope. This is part of the fix for PR1966
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46669 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c
new file mode 100644
index 0000000..0175877
--- /dev/null
+++ b/test/Sema/exprs.c
@@ -0,0 +1,11 @@
+// RUN: clang %s -verify -pedantic -fsyntax-only
+
+// PR1966
+_Complex double test1() {
+ return __extension__ 1.0if;
+}
+
+_Complex double test2() {
+ return 1.0if; // expected-warning {{imaginary constants are an extension}}
+}
+