Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/other/anon5.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // PR c++/34094 | |
2 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } | |
3 // { dg-options "-gdwarf-2" } | |
4 // Ignore additional message on powerpc-ibm-aix | |
5 // { dg-prune-output "obtain more information" } */ | |
6 // Ignore additional messages on Linux/x86 with PIE | |
7 // { dg-prune-output "Bad value" } */ | |
8 | |
9 namespace { | |
10 struct c | |
11 { | |
12 static const bool t = 0; | |
13 }; | |
14 } | |
15 | |
16 const bool &f() | |
17 { | |
18 return c::t; // { dg-message "\[Uu\]ndefined" "undefined" { target *-*-* } 0 } | |
19 // Some targets report the error for the previous line, others | |
20 // don't give line number inforamtion for it, so use line 0. | |
21 } | |
22 | |
23 int main(void) | |
24 { | |
25 return 0; | |
26 } | |
27 |