- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
29 lines
508 B
C++
29 lines
508 B
C++
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
|
|
|
|
struct I {
|
|
int i;
|
|
I();
|
|
~I();
|
|
};
|
|
|
|
void g(int);
|
|
|
|
volatile int i;
|
|
|
|
void f1() {
|
|
// CHECK: call void @_ZN1IC1Ev
|
|
g(i ? I().i : 0);
|
|
// CHECK: call void @_Z1gi
|
|
// CHECK: call void @_ZN1ID1Ev
|
|
|
|
// CHECK: call void @_ZN1IC1Ev
|
|
g(i || I().i);
|
|
// CHECK: call void @_Z1gi
|
|
// CHECK: call void @_ZN1ID1Ev
|
|
|
|
// CHECK: call void @_ZN1IC1Ev
|
|
g(i && I().i);
|
|
// CHECK: call void @_Z1gi
|
|
// CHECK: call void @_ZN1ID1Ev
|
|
}
|