xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/irgen.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: rm -rf %t
2*f4a2713aSLionel 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*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
4*f4a2713aSLionel Sambuc // FIXME: When we have a syntax for modules in C, use that.
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc @import irgen;
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // CHECK: define void @triple_value
9*f4a2713aSLionel Sambuc void triple_value(int *px) {
10*f4a2713aSLionel Sambuc   *px = triple(*px);
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc // CHECK: define internal i32 @triple(i32
14