diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-03-07 02:22:41 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-03-07 02:22:41 +0000 |
commit | c67f146e7f8ff99fb53eee189a09c680f06cf73a (patch) | |
tree | 2af72acb9d5d9aeaa2b2543ceaf2d87f5fc3a354 /test/CodeGenCXX/alloc-size.cpp | |
parent | 548039d002dad963a7a67e80e03752447d57eec6 (diff) |
Revert r326602, it caused PR36620.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/alloc-size.cpp')
-rw-r--r-- | test/CodeGenCXX/alloc-size.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/CodeGenCXX/alloc-size.cpp b/test/CodeGenCXX/alloc-size.cpp index 275ffe6dca..5b8e1c5cf9 100644 --- a/test/CodeGenCXX/alloc-size.cpp +++ b/test/CodeGenCXX/alloc-size.cpp @@ -71,24 +71,6 @@ int testIt() { } } // namespace templated_alloc_size -class C { -public: - void *my_malloc(int N) __attribute__((alloc_size(2))); - void *my_calloc(int N, int M) __attribute__((alloc_size(2, 3))); -}; - -// CHECK-LABEL: define i32 @_Z16callMemberMallocv -int callMemberMalloc() { - // CHECK: ret i32 16 - return __builtin_object_size(C().my_malloc(16), 0); -} - -// CHECK-LABEL: define i32 @_Z16callMemberCallocv -int callMemberCalloc() { - // CHECK: ret i32 32 - return __builtin_object_size(C().my_calloc(16, 2), 0); -} - struct D { ~D(); void *my_malloc(int N) __attribute__((alloc_size(2))); |