Skip to content

Commit f6caec6

Browse files
committed
Speculatively fix build bots
#162843 landed a test that is broken on darwin: https://lab.llvm.org/buildbot/#/builders/190/builds/28819 This is an attempted quick fix.
1 parent a9c8e94 commit f6caec6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/C/C2y/n3623.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ int wmain(int, wchar_t *[], wchar_t *[]) {}
6464
// Invalid signatures.
6565
#if defined(INVALID1)
6666
inline int main(int, char *[]); /* invalid-error {{'main' is not allowed to be declared inline}} */
67+
#if !__is_target_os(darwin)
68+
// This test doesn't make sense on Darwin where four arguments are allowed.
6769
int main(int, char *[], char *[], float); /* invalid-error {{too many parameters (4) for 'main': must be 0, 2, or 3}} */
70+
#endif
6871
float main(int); /* invalid-error {{'main' must return 'int'}} */
6972
_Noreturn int main(int, char *[]); /* invalid-warning {{'main' is not allowed to be declared _Noreturn}}
7073
invalid-note {{remove '_Noreturn'}}

0 commit comments

Comments
 (0)