xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/no-exceptions.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2 
3 void g();
4 
5 // CHECK: define void @_Z1fv() [[NUW:#[0-9]+]]
f()6 void 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]] = { nounwind{{.*}} }
15