cg.cpp revision ce5eff5c813daead3f51dcfb8261a7b5643ede5c
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include %S/ser.h %s -o - | FileCheck %s 2// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-pch -o %t-ser.pch -std=c++0x -x c++ %S/ser.h 3// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -emit-llvm -std=c++0x -include-pch %t-ser.pch %s -o - | FileCheck %s 4 5void test() { 6 bool b; 7 // CHECK: store i8 1, i8* %b, align 1 8 b = noexcept(0); 9 // CHECK: store i8 0, i8* %b, align 1 10 b = noexcept(throw 0); 11 // CHECK: ret i1 true 12 b = f1(); 13 // CHECK: ret i1 false 14 b = f2(); 15} 16