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/mangle.cpp | |
parent | a09b70579a8cbddbd677250916e82cf43932bd99 (diff) | |
download | bcm5719-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/mangle.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index c55e3e0f8a5..66cc0262b01 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -280,13 +280,13 @@ struct Ops { void *v; }; -// CHECK-LABEL: define %struct.Ops* @_ZN3OpsplERKS_ +// CHECK-LABEL: define nonnull %struct.Ops* @_ZN3OpsplERKS_ Ops& Ops::operator+(const Ops&) { return *this; } -// CHECK-LABEL: define %struct.Ops* @_ZN3OpsmiERKS_ +// CHECK-LABEL: define nonnull %struct.Ops* @_ZN3OpsmiERKS_ Ops& Ops::operator-(const Ops&) { return *this; } -// CHECK-LABEL: define %struct.Ops* @_ZN3OpsanERKS_ +// CHECK-LABEL: define nonnull %struct.Ops* @_ZN3OpsanERKS_ Ops& Ops::operator&(const Ops&) { return *this; } -// CHECK-LABEL: define %struct.Ops* @_ZN3OpsmlERKS_ +// CHECK-LABEL: define nonnull %struct.Ops* @_ZN3OpsmlERKS_ Ops& Ops::operator*(const Ops&) { return *this; } // PR5861 @@ -899,7 +899,7 @@ namespace test39 { } namespace test40 { - // CHECK: i32* @_ZZN6test401fEvE1a_0 + // CHECK: i32* {{.*}} @_ZZN6test401fEvE1a_0 void h(int&); inline void f() { if (0) { |