Anders Carlsson | a994ee4 | 2010-02-06 23:59:05 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | void g(); |
| 4 | |
Bill Wendling | 8992457 | 2013-02-27 00:06:04 +0000 | [diff] [blame] | 5 | // CHECK: define void @_Z1fv() [[NUW:#[0-9]+]] |
Anders Carlsson | a994ee4 | 2010-02-06 23:59:05 +0000 | [diff] [blame] | 6 | void f() throw (int) { |
| 7 | |
| 8 | // CHECK-NOT: invoke void @_Z1gv |
| 9 | g(); |
| 10 | // CHECK: call void @_Z1gv() |
| 11 | // CHECK: ret void |
| 12 | } |
Bill Wendling | f7a9da0 | 2013-02-20 07:22:19 +0000 | [diff] [blame] | 13 | |
Bill Wendling | be9e8bf | 2013-02-28 22:49:57 +0000 | [diff] [blame] | 14 | // CHECK: attributes [[NUW]] = { nounwind{{.*}} } |