summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/enum13.C
blob: 1c836470261ba0d8126ec69eea0708ef8e6ec4f6 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// Origin: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

template <typename T>
struct foo {
    enum { A = 4 >= 4, B = (1 ? true : A) };
};
 
foo<int> bar;