summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tc1/dr74.C
blob: 155c7981b52256043563f94675bddfc64b7b975b (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
// DR74: Enumeration value in direct-new-declarator 

struct A {};
enum E1 { COUNT = 10 };

A* a = new A[COUNT];