summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/operator-new.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-12-17 10:15:49 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-12-17 10:15:49 +0000
commit641fdce2359763bbc831255c2f88cfa19e960831 (patch)
tree2dbcae81d25fc8c4331de5c9da94d3976cf41b5c /clang/test/CodeGenCXX/operator-new.cpp
parentff22e5e8cbced39f609384be02eb3713728abf9c (diff)
downloadbcm5719-llvm-641fdce2359763bbc831255c2f88cfa19e960831.tar.gz
bcm5719-llvm-641fdce2359763bbc831255c2f88cfa19e960831.zip
revert part of my last patch, and mark only the c++ global new operator as noalias. the rest will be infered by llvm optz
llvm-svn: 91600
Diffstat (limited to 'clang/test/CodeGenCXX/operator-new.cpp')
-rw-r--r--clang/test/CodeGenCXX/operator-new.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/test/CodeGenCXX/operator-new.cpp b/clang/test/CodeGenCXX/operator-new.cpp
index 6becaae72cb..da64fc1b2d4 100644
--- a/clang/test/CodeGenCXX/operator-new.cpp
+++ b/clang/test/CodeGenCXX/operator-new.cpp
@@ -7,15 +7,10 @@
class teste {
int A;
teste() : A(2) {}
- void* operator new(unsigned) {return ::new teste();}
};
void f1() {
+ // CHECK-SANE: declare noalias i8* @_Znwj(
+ // CHECK-SANENOT: declare i8* @_Znwj(
new teste();
}
-
-// CHECK-SANE: define linkonce_odr noalias i8* @_ZN5testenwEj(
-// CHECK-SANE: declare noalias i8* @_Znwj(
-
-// CHECK-SANENOT: define linkonce_odr i8* @_ZN5testenwEj(
-// CHECK-SANENOT: declare i8* @_Znwj(
OpenPOWER on IntegriCloud