Skip to content

Commit 3777e12

Browse files
authored
Use hello_world.c rather than hello_world.cpp for metadce test. NFC (#20957)
I think this file was originally copied from `test/hello_world.cpp` before we had the pure C version in place.
1 parent 9888e61 commit 3777e12

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/other/metadce/hello_world.cpp renamed to test/other/metadce/hello_world.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#include <stdio.h>
77

8-
class Test {}; // This will fail in C mode
9-
108
int main() {
119
printf("hello, world!\n");
1210
return 0;

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8330,7 +8330,7 @@ def test_metadce_cxx(self, *args):
83308330
'wasmfs': (['-O3', '-sWASMFS'], [], []), # noqa
83318331
})
83328332
def test_metadce_hello(self, *args):
8333-
self.run_metadce_test('hello_world.cpp', *args)
8333+
self.run_metadce_test('hello_world.c', *args)
83348334

83358335
@parameterized({
83368336
'O3': ('mem.c', ['-O3'],

0 commit comments

Comments
 (0)