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