Skip to content

Commit de2a448

Browse files
committed
Add a test case based on review feedback
1 parent 517b2b6 commit de2a448

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/test/C/C2y/n3411.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
// RUN: %clang_cc1 -verify=c2y -std=c2y -Wall -pedantic %s
1+
// RUN: %clang_cc1 -verify=good -std=c2y -Wall -pedantic %s
22
// RUN: %clang_cc1 -verify -Wnewline-eof -std=c2y -Wall -pedantic %s
33
// RUN: %clang_cc1 -verify -std=c23 -Wall -pedantic %s
4+
// RUN: %clang_cc1 -verify=good -std=c23 %s
45

56
/* WG14 N3411: Yes
67
* Slay Some Earthly Demons XII
78
*
89
* Allow a non-empty source file to end without a final newline character. Note
910
* that this file intentionally does not end with a trailing newline.
1011
*/
11-
// c2y-no-diagnostics
12+
// good-no-diagnostics
1213

1314
int x; // Ensure the file contains at least one declaration.
1415
// expected-warning {{no newline at end of file}}

0 commit comments

Comments
 (0)