xref: /aosp_15_r20/external/clang/test/CodeGenCXX/no-exceptions.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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