blob: c44afb1becb12a11db411c1817547cacfbf19722 [file] [log] [blame]
Douglas Gregor81ac8422011-11-16 00:21:54 +00001// RUN: rm -rf %t
Douglas Gregor35b04d62013-02-07 19:01:24 +00002// 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
Ben Langmuir9eb229b2014-01-22 23:19:39 +00003// 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
Douglas Gregorda82e702012-01-03 19:32:59 +00004// FIXME: When we have a syntax for modules in C, use that.
Douglas Gregor6137d322011-09-15 18:47:32 +00005
Douglas Gregorc50d4922012-12-11 22:11:52 +00006@import irgen;
Douglas Gregor6137d322011-09-15 18:47:32 +00007
8// CHECK: define void @triple_value
9void triple_value(int *px) {
10 *px = triple(*px);
11}
12
13// CHECK: define internal i32 @triple(i32