summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/default-arg-temps.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-05-28 09:56:42 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-05-28 09:56:42 +0000
commit9b46eb81127be4a7560952677294d3c376648c08 (patch)
tree99e4aa165636c60d4f0e903a00b1f41e7976a6ae /clang/test/CodeGenCXX/default-arg-temps.cpp
parenta09b70579a8cbddbd677250916e82cf43932bd99 (diff)
downloadbcm5719-llvm-9b46eb81127be4a7560952677294d3c376648c08.tar.gz
bcm5719-llvm-9b46eb81127be4a7560952677294d3c376648c08.zip
Add 'nonnull' parameter or return attribute when producing an llvm pointer type in a function type where the C++ type is a reference. Update the tests.
llvm-svn: 209723
Diffstat (limited to 'clang/test/CodeGenCXX/default-arg-temps.cpp')
-rw-r--r--clang/test/CodeGenCXX/default-arg-temps.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/default-arg-temps.cpp b/clang/test/CodeGenCXX/default-arg-temps.cpp
index 43756006f20..7910942eee9 100644
--- a/clang/test/CodeGenCXX/default-arg-temps.cpp
+++ b/clang/test/CodeGenCXX/default-arg-temps.cpp
@@ -16,12 +16,12 @@ public:
// CHECK-LABEL: define void @_Z1gv()
void g() {
// CHECK: call void @_ZN1TC1Ev([[T:%.*]]* [[AGG1:%.*]])
- // CHECK-NEXT: call void @_Z1fRK1T([[T]]* [[AGG1]])
+ // CHECK-NEXT: call void @_Z1fRK1T([[T]]* nonnull [[AGG1]])
// CHECK-NEXT: call void @_ZN1TD1Ev([[T]]* [[AGG1]])
f();
// CHECK-NEXT: call void @_ZN1TC1Ev([[T:%.*]]* [[AGG2:%.*]])
- // CHECK-NEXT: call void @_Z1fRK1T([[T]]* [[AGG2]])
+ // CHECK-NEXT: call void @_Z1fRK1T([[T]]* nonnull [[AGG2]])
// CHECK-NEXT: call void @_ZN1TD1Ev([[T]]* [[AGG2]])
f();
OpenPOWER on IntegriCloud