gcc/testsuite/g++.dg/lookup/strong-using2.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-w" } |
| 3 | |
| 4 | namespace A |
| 5 | { |
| 6 | namespace B // { dg-bogus "inline namespace" } |
| 7 | { |
| 8 | } |
| 9 | |
| 10 | using namespace B __attribute__ ((strong)); // { dg-bogus "no longer supported" } |
| 11 | } |
| 12 | |
| 13 | namespace C |
| 14 | { |
| 15 | namespace D // { dg-bogus "inline namespace" } |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | [[gnu::strong]] using namespace D; // { dg-bogus "no longer supported" } |
| 20 | } |