Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist128.C

raw
1 // PR c++/102434
2 // { dg-do compile { target c++11 } }
3
4 using size_t = decltype(sizeof 0);
5
6 namespace std {
7 template<typename T> union initializer_list { // { dg-error "definition of .*std::initializer_list.* does not match" }
8 const T *ptr;
9 size_t n;
10 };
11 }
12 template<typename T>
13 void Task() {}
14 auto b = { &Task<int> };
15
16 // { dg-prune-output "compilation terminated" }