Skip to content

Commit 0e6d47a

Browse files
authored
Move main out of the extern "C" block in test_rust_gxx_personality_v0 (#22336)
llvm/llvm-project#101853 started to enforce the C++ standard langauge that disallows main from being declared in a linkage specification.
1 parent 9d9437f commit 0e6d47a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_other.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13990,10 +13990,10 @@ def test_rust_gxx_personality_v0(self):
1399013990
#include <stdint.h>
1399113991
extern "C" {
1399213992
int __gxx_personality_v0(int version, void* actions, uint64_t exception_class, void* exception_object, void* context);
13993-
int main() {
13994-
__gxx_personality_v0(0, NULL, 0, NULL, NULL);
13995-
return 0;
13996-
}
13993+
}
13994+
int main() {
13995+
__gxx_personality_v0(0, NULL, 0, NULL, NULL);
13996+
return 0;
1399713997
}
1399813998
''', assert_returncode=NON_ZERO, emcc_args=['-fexceptions'])
1399913999

0 commit comments

Comments
 (0)