[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / irgen.c
blob92bd855c90753ff1612a7d65c827109c869c464d
1 // REQUIRES: x86-registered-target
2 // RUN: rm -rf %t
3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=irgen -triple x86_64-apple-darwin10 %S/Inputs/module.map
4 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
5 // FIXME: When we have a syntax for modules in C, use that.
7 @import irgen;
9 // CHECK: define{{.*}} void @triple_value
10 void triple_value(int *px) {
11 *px = triple(*px);
14 // CHECK: define internal i32 @triple(i32