Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/torture/pr67055.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // { dg-do compile } | 1 // { dg-do compile } |
2 // { dg-additional-options "-std=c++14" } | 2 // { dg-additional-options "-std=c++14" } |
3 // { dg-require-effective-target alloca } | |
3 | 4 |
4 namespace std { | 5 namespace std { |
5 typedef __SIZE_TYPE__ size_t; | 6 typedef __SIZE_TYPE__ size_t; |
6 struct nothrow_t; | 7 struct nothrow_t; |
7 } | 8 } |
13 }; | 14 }; |
14 template <typename StackRep> | 15 template <typename StackRep> |
15 unsigned long A<StackRep>::fillStack(unsigned long p1) { | 16 unsigned long A<StackRep>::fillStack(unsigned long p1) { |
16 void *retAddr[p1]; | 17 void *retAddr[p1]; |
17 fn1(retAddr); | 18 fn1(retAddr); |
19 return 0; | |
18 } | 20 } |
19 class B { | 21 class B { |
20 protected: | 22 protected: |
21 B(void *); | 23 B(void *); |
22 }; | 24 }; |
31 }; | 33 }; |
32 template <typename MemBlockPtrT, typename ThreadListT> | 34 template <typename MemBlockPtrT, typename ThreadListT> |
33 void *C<MemBlockPtrT, ThreadListT>::malloc(unsigned long) { | 35 void *C<MemBlockPtrT, ThreadListT>::malloc(unsigned long) { |
34 MemBlockPtrT mem; | 36 MemBlockPtrT mem; |
35 mem.alloc(0); | 37 mem.alloc(0); |
38 return 0; | |
36 } | 39 } |
37 C<D<16>, int> *_GmemP; | 40 C<D<16>, int> *_GmemP; |
38 } | 41 } |
39 void *operator new(std::size_t, std::nothrow_t &) noexcept { | 42 void *operator new(std::size_t, std::nothrow_t &) noexcept { |
40 return vespamalloc::_GmemP->malloc(0); | 43 return vespamalloc::_GmemP->malloc(0); |