2012-05-10 05:21:49 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
void f(void);
|
|
|
|
void g(void) {
|
2013-03-01 06:49:57 +08:00
|
|
|
// CHECK: define void @g() [[NUW:#[0-9]+]]
|
2011-07-27 06:17:02 +08:00
|
|
|
// CHECK-NOT: call void @f() nounwind
|
|
|
|
f();
|
|
|
|
}
|
|
|
|
|
2013-03-01 06:49:57 +08:00
|
|
|
// CHECK-NOT: declare void @f() [[NUW]]
|
2013-02-20 15:22:19 +08:00
|
|
|
|
2013-03-01 06:49:57 +08:00
|
|
|
// CHECK: attributes [[NUW]] = { nounwind{{.*}} }
|