================
@@ -0,0 +1,57 @@
+// RUN: %clang_cc1 -std=c90 -pedantic -Wno-comment
-Wno-deprecated-non-prototype -Wimplicit-int -verify=c90 -x c %s
+// RUN: cp %s %t
+// RUN: %clang_cc1 -std=c90 -pedantic -Wno-comment
-Wno-deprecated-non-prototype -Wimplicit-int -fixit %t
+// RUN: %clang_cc1 -std=c90 -pedantic -Wno-comment
-Wno-deprecated-non-prototype -Wimplicit-int -Werror -x c %t
+// RUN: cat %t | FileCheck %s
+// RUN: %clang_cc1 -std=c99 -pedantic -Wno-deprecated-non-prototype
-verify=c99 -x c %s
+// RUN: cp %s %t
+// RUN: not %clang_cc1 -std=c99 -pedantic -Wno-deprecated-non-prototype -fixit
%t
+// RUN: %clang_cc1 -std=c99 -pedantic -Wno-deprecated-non-prototype -Werror -x
c %t
+// RUN: cat %t | FileCheck %s
+// RUN: %clang_cc1 -std=c23 -pedantic -verify=c23 -x c %s
+
+// CHECK: int imp0[4],imp1,imp2=5;
+imp0[4],imp1,imp2=5;
+// c90-warning@-1 {{type specifier missing, defaults to 'int'}}
+// c99-error@-2 {{type specifier missing, defaults to 'int'}}
----------------
Sirraide wrote:
Ah, disregard this; I was too far away from the screen and misread both of
these as saying `c99`, but one of them is `c90` so that’s fine.
https://github.com/llvm/llvm-project/pull/179356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits