c++: Add new test [PR92427]
Fixed in r10-5578. PR c++/92427 * g++.dg/ext/flexary37.C: New test.
This commit is contained in:
parent
161aa50ee2
commit
36e8db7c2a
1 changed files with 15 additions and 0 deletions
15
gcc/testsuite/g++.dg/ext/flexary37.C
Normal file
15
gcc/testsuite/g++.dg/ext/flexary37.C
Normal file
|
@ -0,0 +1,15 @@
|
|||
// PR c++/92427
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-options "" }
|
||||
|
||||
class C {
|
||||
private:
|
||||
int a; int b;
|
||||
public:
|
||||
C(int A, int B) : a(A), b(B) { }
|
||||
~C() { }
|
||||
};
|
||||
|
||||
struct y { // { dg-error "unknown array size in delete" }
|
||||
int a; C b[];
|
||||
} y = { 1, { { 2, 3 } } }; // { dg-error "unknown array size in delete" }
|
Loading…
Add table
Reference in a new issue