OSDN Git Service

Some raw string changes from N3077
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / anon5.C
1 // PR c++/34094
2 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
3 // { dg-options "-g" }
4
5 namespace {
6   struct c
7   {
8     static const bool t = 0;
9   };
10 }
11
12 const bool &f()
13 {
14   return c::t;  // { dg-message "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.
17 }
18
19 int main(void)
20 {
21   return 0;
22 }
23