Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / other / anon5.C
blob189cfa4624b9cacbd4b9baaa947dfb8afa8cafd5
1 // PR c++/34094
2 // { dg-do link { target { ! hppa*-*-hpux* } } }
3 // { dg-options "-g" }
5 namespace {
6   struct c
7   {
8     static const bool t = 0;
9   };
12 const bool &f()
14   return c::t;  // { dg-error "undefined" "undefined" { target *-*-* } 0 }
15                 // Some targets report the error for the previous line, others
16                 // don't give line number inforamtion for it, so use line 0.
19 int main(void)
21   return 0;