c++: unsigned int32_t enum promotion [PR102804]
[official-gcc.git] / gcc / testsuite / g++.dg / ext / unsigned-typedef1.C
blob360b5f81edfe3a89f124899c2fab3622b1608be2
1 // PR c++/102804
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wpedantic" }
5 using int32_t = int;
6 enum: unsigned int32_t { foo }; // { dg-warning "int32_t" }
7 int f(int) = delete;
8 int f(unsigned);
9 auto x = f(1 ? foo : 1);