Skip to content

Commit

Permalink
Use hello_world.c rather than hello_world.cpp for metadce test. NFC (#…
Browse files Browse the repository at this point in the history
…20957)

I think this file was originally copied from `test/hello_world.cpp`
before we had the pure C version in place.
  • Loading branch information
sbc100 authored Dec 20, 2023
1 parent 9888e61 commit 3777e12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include <stdio.h>

class Test {}; // This will fail in C mode

int main() {
printf("hello, world!\n");
return 0;
Expand Down
2 changes: 1 addition & 1 deletion test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -8330,7 +8330,7 @@ def test_metadce_cxx(self, *args):
'wasmfs': (['-O3', '-sWASMFS'], [], []), # noqa
})
def test_metadce_hello(self, *args):
self.run_metadce_test('hello_world.cpp', *args)
self.run_metadce_test('hello_world.c', *args)

@parameterized({
'O3': ('mem.c', ['-O3'],
Expand Down

0 comments on commit 3777e12

Please sign in to comment.