blob: 1213492d1db0994d778193aa61f0642acfddc85d [file] [log] [blame]
Nuno Lopes060ddb02012-05-09 21:21:49 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002
3void f(void);
4void g(void) {
Bill Wendlingbe9e8bf2013-02-28 22:49:57 +00005 // CHECK: define void @g() [[NUW:#[0-9]+]]
Eric Christopher3883e662011-07-26 22:17:02 +00006 // CHECK-NOT: call void @f() nounwind
7 f();
8}
9
Bill Wendlingbe9e8bf2013-02-28 22:49:57 +000010// CHECK-NOT: declare void @f() [[NUW]]
Bill Wendlingf7a9da02013-02-20 07:22:19 +000011
Bill Wendlingbe9e8bf2013-02-28 22:49:57 +000012// CHECK: attributes [[NUW]] = { nounwind{{.*}} }