We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517b2b6 commit de2a448Copy full SHA for de2a448
clang/test/C/C2y/n3411.c
@@ -1,14 +1,15 @@
1
-// RUN: %clang_cc1 -verify=c2y -std=c2y -Wall -pedantic %s
+// RUN: %clang_cc1 -verify=good -std=c2y -Wall -pedantic %s
2
// RUN: %clang_cc1 -verify -Wnewline-eof -std=c2y -Wall -pedantic %s
3
// RUN: %clang_cc1 -verify -std=c23 -Wall -pedantic %s
4
+// RUN: %clang_cc1 -verify=good -std=c23 %s
5
6
/* WG14 N3411: Yes
7
* Slay Some Earthly Demons XII
8
*
9
* Allow a non-empty source file to end without a final newline character. Note
10
* that this file intentionally does not end with a trailing newline.
11
*/
-// c2y-no-diagnostics
12
+// good-no-diagnostics
13
14
int x; // Ensure the file contains at least one declaration.
15
// expected-warning {{no newline at end of file}}
0 commit comments