]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2008-04-08-NoExceptions.c
Vendor import of clang RELEASE_360/rc2 tag r227651 (effectively, 3.6.0 RC2):
[FreeBSD/FreeBSD.git] / test / CodeGen / 2008-04-08-NoExceptions.c
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
2
3 void f(void);
4 void g(void) {
5   // CHECK: define void @g() [[NUW:#[0-9]+]]
6   // CHECK-NOT: call void @f() nounwind
7   f();
8 }
9
10 // CHECK-NOT: declare void @f() [[NUW]]
11
12 // CHECK: attributes [[NUW]] = { nounwind{{.*}} }