diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2014-05-28 09:56:42 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2014-05-28 09:56:42 +0000 |
commit | 9b46eb81127be4a7560952677294d3c376648c08 (patch) | |
tree | 99e4aa165636c60d4f0e903a00b1f41e7976a6ae /clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp | |
parent | a09b70579a8cbddbd677250916e82cf43932bd99 (diff) | |
download | llvm-9b46eb81127be4a7560952677294d3c376648c08.zip llvm-9b46eb81127be4a7560952677294d3c376648c08.tar.gz llvm-9b46eb81127be4a7560952677294d3c376648c08.tar.bz2 |
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/implicit-copy-assign-operator.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp b/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp index 2674021..f01d362 100644 --- a/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp +++ b/clang/test/CodeGenCXX/implicit-copy-assign-operator.cpp @@ -40,7 +40,7 @@ void test_D(D d1, D d2) { d1 = d2; } -// CHECK-LABEL: define linkonce_odr %struct.D* @_ZN1DaSERS_ +// CHECK-LABEL: define linkonce_odr nonnull %struct.D* @_ZN1DaSERS_ // CHECK: {{call.*_ZN1AaSERS_}} // CHECK: {{call.*_ZN1BaSERS_}} // CHECK: {{call.*_ZN1CaSERKS_}} @@ -53,4 +53,3 @@ void test_D(D d1, D d2) { // CHECK: call void @_ZN11CopyByValueC1ERKS_ // CHECK: {{call.*_ZN11CopyByValueaSES_}} // CHECK: ret - |