diff options
Diffstat (limited to 'clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp b/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp index da8712180ef..35fed7bf0d4 100644 --- a/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp +++ b/clang/test/CodeGenCXX/2009-05-04-PureConstNounwind.cpp @@ -10,6 +10,10 @@ int f(void) { return c() + p() + t(); } -// CHECK: declare i32 @_Z1cv() nounwind readnone -// CHECK: declare i32 @_Z1pv() nounwind readonly -// CHECK-NOT: declare i32 @_Z1tv() nounwind +// CHECK: declare i32 @_Z1cv() #1 +// CHECK: declare i32 @_Z1pv() #2 +// CHECK: declare i32 @_Z1tv() #0 + +// CHECK: attributes #0 = { "target-features"={{.*}} } +// CHECK: attributes #1 = { nounwind readnone "target-features"={{.*}} } +// CHECK: attributes #2 = { nounwind readonly "target-features"={{.*}} } |