clang/test/CodeGenCXX/no-exceptions.cpp
raw| 1 | // RUN: %clang_cc1 %std_cxx11- -Wno-dynamic-exception-spec %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | void g(); |
| 4 | |
| 5 | // CHECK: define{{.*}} void @_Z1fv() [[NUW:#[0-9]+]] |
| 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]] = { mustprogress noinline nounwind{{.*}} } |