blob: b2eb8b5ce09a38c89b9f8e0d609bffb1f226f446 [file] [log] [blame]
Adrian Prantlbc068582015-07-08 01:00:30 +00001// REQUIRES: x86-registered-target
Douglas Gregor81ac8422011-11-16 00:21:54 +00002// RUN: rm -rf %t
Richard Smith47972af2015-06-16 00:08:24 +00003// 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
Douglas Gregorda82e702012-01-03 19:32:59 +00005// FIXME: When we have a syntax for modules in C, use that.
Douglas Gregor6137d322011-09-15 18:47:32 +00006
Douglas Gregorc50d4922012-12-11 22:11:52 +00007@import irgen;
Douglas Gregor6137d322011-09-15 18:47:32 +00008
9// CHECK: define void @triple_value
10void triple_value(int *px) {
11 *px = triple(*px);
12}
13
14// CHECK: define internal i32 @triple(i32