History

_Static_assert must be followed by semicolon

as per the C11 grammar.

Michael Matz committed 7 years ago

Commit d30bc6d1 parent e3716422 files · +3 −2Browse files

Showing the changes to tests (1 of 2 files). Show all

Unified · Split

tests/tests2/60_errors_and_warnings.c+2−2
@@ -179,7 +179,7 @@ void * _Alignas(16) p1; · 178 unmodified lines
179#elif defined test_static_assert179#elif defined test_static_assert
180 180
181#define ONE 0181#define ONE 0
182 _Static_assert(ONE == 0, "don't show me this")182 _Static_assert(ONE == 0, "don't show me this");
183 _Static_assert(ONE == 1, "ONE is not 1")183 _Static_assert(ONE == 1, "ONE is not 1");
184 184
185#endif185#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t