1f4a2713aSLionel Sambuc // RUN: rm -rf %t 2f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -emit-module -fmodule-name=irgen -triple x86_64-apple-darwin10 %S/Inputs/module.map 3*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -I %S/Inputs -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s 4f4a2713aSLionel Sambuc // FIXME: When we have a syntax for modules in C, use that. 5f4a2713aSLionel Sambuc 6f4a2713aSLionel Sambuc @import irgen; 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc // CHECK: define void @triple_value triple_value(int * px)9f4a2713aSLionel Sambucvoid triple_value(int *px) { 10f4a2713aSLionel Sambuc *px = triple(*px); 11f4a2713aSLionel Sambuc } 12f4a2713aSLionel Sambuc 13f4a2713aSLionel Sambuc // CHECK: define internal i32 @triple(i32 14