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. 6 7@import irgen; 8 9// CHECK: define void @triple_value 10void triple_value(int *px) { 11 *px = triple(*px); 12} 13 14// CHECK: define internal i32 @triple(i32 15