* g++.dg/other/unused1.C: Skip on AIX.
[official-gcc.git] / gcc / testsuite / g++.dg / other / anon5.C
blob81e9def53721404f493a14e040a3ad2c64c819a9
1 // PR c++/34094
2 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
3 // { dg-options "-g" }
4 // Ignore additional message on powerpc-ibm-aix
5 // { dg-prune-output "obtain more information" } */
7 namespace {
8   struct c
9   {
10     static const bool t = 0;
11   };
14 const bool &f()
16   return c::t;  // { dg-message "\[Uu\]ndefined" "undefined" { target *-*-* } 0 }
17                 // Some targets report the error for the previous line, others
18                 // don't give line number inforamtion for it, so use line 0.
21 int main(void)
23   return 0;