aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/underlying_type14.C
blob: 91840b2015c0c058d3834221136ca5bdb6e6e6dd (plain)
1
2
3
4
5
6
7
8
// Verify pretty-printing when nesting a builtin trait.

template<class T> void f(__underlying_type(__underlying_type(T))); // { dg-error "" }
// { dg-message "__underlying_type\\(__underlying_type\\(T\\)\\)\\)" "" { target *-*-* } .-1 }

int main() {
  f<int>(0); // { dg-error "no match" }
}