| 1 | // RUN: %clang_cc1 -fsyntax-only %s |
|---|---|
| 2 | |
| 3 | namespace test1 { |
| 4 | template <class C> |
| 5 | struct C2 |
| 6 | { |
| 7 | static int p __attribute__((visibility("hidden"))); |
| 8 | }; |
| 9 | int f() { |
| 10 | return C2<int>::p; |
| 11 | } |
| 12 | } |
| 13 |
| 1 | // RUN: %clang_cc1 -fsyntax-only %s |
|---|---|
| 2 | |
| 3 | namespace test1 { |
| 4 | template <class C> |
| 5 | struct C2 |
| 6 | { |
| 7 | static int p __attribute__((visibility("hidden"))); |
| 8 | }; |
| 9 | int f() { |
| 10 | return C2<int>::p; |
| 11 | } |
| 12 | } |
| 13 |