Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

14 lines
349 B
C

// RUN: %clang_cc1 -triple wasm32-unknown-unknown-wasm -emit-llvm -o - %s | FileCheck %s
int __attribute__((export_name("bar"))) foo(void);
int foo(void) {
return 43;
}
// CHECK: @llvm.used = appending global [1 x ptr] [ptr @foo]
// CHECK: define i32 @foo() [[A:#[0-9]+]]
// CHECK: attributes [[A]] = {{{.*}} "wasm-export-name"="bar" {{.*}}}