Simon Pilgrim 822c5c5084 [clang][CodeGen] Move WebAssembly specific tests to WebAssembly subtarget folder
Minor cleanup to move more target specific tests out of the root codegen test folder
2020-11-20 12:03:28 +00:00

14 lines
273 B
C

// RUN: %clang_cc1 -triple wasm32 -o - -emit-llvm %s | FileCheck %s
// Mangle argc/argv main even when it's not defined in this TU.
#include <stddef.h>
int main(int argc, char *argv[]);
int foo(void) {
return main(0, NULL);
}
// CHECK: call i32 @__main_argc_argv(