Douglas Gregor | 1432569 | 2011-11-16 00:21:54 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | c13a34b | 2012-01-03 19:32:59 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -emit-module -fmodule-name=irgen -triple x86_64-apple-darwin10 %S/Inputs/module.map |
| 3 | // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
| 4 | // FIXME: When we have a syntax for modules in C, use that. |
Douglas Gregor | 1a995dd | 2011-09-15 18:47:32 +0000 | [diff] [blame] | 5 | |
Ted Kremenek | 32ad2ee | 2012-03-01 22:07:04 +0000 | [diff] [blame] | 6 | @__experimental_modules_import irgen; |
Douglas Gregor | 1a995dd | 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 |