aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/reference-cast.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-25 07:15:16 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-25 07:15:16 +0000
commitd620e09c13b1ca32434ce440abf5bb0f3d0979c5 (patch)
tree7741519fb7d204ac5f8303922943f752d4903cab /test/CodeGenCXX/reference-cast.cpp
parent0a8dead5303bd0cabebf07ab4e8d4f838787e8f1 (diff)
Add more attributes from the command line to functions.
This is an ongoing process. Any command line option which a back-end cares about should be added here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/reference-cast.cpp')
-rw-r--r--test/CodeGenCXX/reference-cast.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CodeGenCXX/reference-cast.cpp b/test/CodeGenCXX/reference-cast.cpp
index ec4fdaf196..f157ae99f9 100644
--- a/test/CodeGenCXX/reference-cast.cpp
+++ b/test/CodeGenCXX/reference-cast.cpp
@@ -3,7 +3,7 @@
// PR6024
extern int i;
-// CHECK: define i32* @_Z16lvalue_noop_castv() #0
+// CHECK: define i32* @_Z16lvalue_noop_castv() [[NUW:#[0-9]+]]
const int &lvalue_noop_cast() {
if (i == 0)
// CHECK: store i32 17, i32*
@@ -193,5 +193,4 @@ namespace PR10650 {
// CHECK: store i64
}
-// CHECK: attributes #0 = { nounwind "target-features"={{.*}} }
-// CHECK: attributes #1 = { "target-features"={{.*}} }
+// CHECK: attributes [[NUW]] = { nounwind{{.*}} }