aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/nested-linkage.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-31 01:43:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-31 01:43:05 +0000
commit1503f777d94fc05a89c7305651d4b0221c63f586 (patch)
tree7a88982403616523cecfe937e939dbad7471dfe3 /test/SemaTemplate/nested-linkage.cpp
parent3503d041ca8a3535a1c1a30005a6b18ae7aed5db (diff)
Make the check for the linkage of a template handle the case of nested
linkage specifications correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-linkage.cpp')
-rw-r--r--test/SemaTemplate/nested-linkage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-linkage.cpp b/test/SemaTemplate/nested-linkage.cpp
new file mode 100644
index 0000000000..ffe9adc927
--- /dev/null
+++ b/test/SemaTemplate/nested-linkage.cpp
@@ -0,0 +1,3 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+extern "C" { extern "C++" { template<class C> C x(); } }