Clang Project

clang_source_code/test/CodeGenCXX/no-exceptions.cpp
1// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2
3void g();
4
5// CHECK: define void @_Z1fv() [[NUW:#[0-9]+]]
6void f() throw (int) { 
7
8  // CHECK-NOT: invoke void @_Z1gv
9  g();
10  // CHECK: call void @_Z1gv()
11  // CHECK: ret void
12}
13
14// CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} }
15