repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: unsigned int32_t enum promotion [PR102804]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
unsigned-typedef1.C
blob
360b5f81edfe3a89f124899c2fab3622b1608be2
1
// PR c++/102804
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wpedantic" }
4
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);