Debian Codegraph @

gcc/testsuite/g++.dg/ext/underlying_type14.C

raw
1 // Verify pretty-printing when nesting a builtin trait.
2
3 template<class T> void f(__underlying_type(__underlying_type(T))); // { dg-error "" }
4 // { dg-message "__underlying_type\\(__underlying_type\\(T\\)\\)\\)" "" { target *-*-* } .-1 }
5
6 int main() {
7 f<int>(0); // { dg-error "no match" }
8 }