diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
| commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
| tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/SemaCXX/visibility.cpp | |
| parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) | |
Notes
Diffstat (limited to 'test/SemaCXX/visibility.cpp')
| -rw-r--r-- | test/SemaCXX/visibility.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaCXX/visibility.cpp b/test/SemaCXX/visibility.cpp new file mode 100644 index 000000000000..434b3c06c1c5 --- /dev/null +++ b/test/SemaCXX/visibility.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -fsyntax-only %s + +namespace test1 { + template <class C> + struct C2 + { + static int p __attribute__((visibility("hidden"))); + }; + int f() { + return C2<int>::p; + } +} |
