Douglas Gregor | 81ac842 | 2011-11-16 00:21:54 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 35b04d6 | 2013-02-07 19:01:24 +0000 | [diff] [blame] | 2 | // 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 Langmuir | 9eb229b | 2014-01-22 23:19:39 +0000 | [diff] [blame] | 3 | // 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 Gregor | da82e70 | 2012-01-03 19:32:59 +0000 | [diff] [blame] | 4 | // FIXME: When we have a syntax for modules in C, use that. |
Douglas Gregor | 6137d32 | 2011-09-15 18:47:32 +0000 | [diff] [blame] | 5 | |
Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 6 | @import irgen; |
Douglas Gregor | 6137d32 | 2011-09-15 18:47:32 +0000 | [diff] [blame] | 7 | |
| 8 | // CHECK: define void @triple_value |
| 9 | void triple_value(int *px) { |
| 10 | *px = triple(*px); |
| 11 | } |
| 12 | |
| 13 | // CHECK: define internal i32 @triple(i32 |