summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/implicit-copy-constructor.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
commit9e97cc3391b446c8c4daefd0b955d7ae7dc67ed9 (patch)
tree7aba362fe9f1f331c63748a175818079d90caa6a /test/CodeGenCXX/implicit-copy-constructor.cpp
parentd519dc975cf544718d9a46a63ec57cc7727cada2 (diff)
downloadclang-9e97cc3391b446c8c4daefd0b955d7ae7dc67ed9.tar.gz
clang-9e97cc3391b446c8c4daefd0b955d7ae7dc67ed9.tar.bz2
clang-9e97cc3391b446c8c4daefd0b955d7ae7dc67ed9.tar.xz
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/implicit-copy-constructor.cpp')
-rw-r--r--test/CodeGenCXX/implicit-copy-constructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/implicit-copy-constructor.cpp b/test/CodeGenCXX/implicit-copy-constructor.cpp
index bb04318e73..fa6be99d11 100644
--- a/test/CodeGenCXX/implicit-copy-constructor.cpp
+++ b/test/CodeGenCXX/implicit-copy-constructor.cpp
@@ -40,7 +40,7 @@ void f(D d) {
D d2(d);
}
-// CHECK-LABEL: define linkonce_odr void @_ZN1DC1ERS_(%struct.D* %this, %struct.D*) unnamed_addr
+// CHECK-LABEL: define linkonce_odr void @_ZN1DC1ERS_(%struct.D* %this, %struct.D* nonnull) unnamed_addr
// CHECK: call void @_ZN1AC1Ev
// CHECK: call void @_ZN1CC2ERS_1A
// CHECK: call void @_ZN1AD1Ev