diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-09 08:37:16 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-09 08:37:16 +0000 |
commit | 3a5032b89df601ab2e0c5c7e9667db2301bf10cf (patch) | |
tree | 0a10005d35f407fbd895deec316270874c399ae8 /test/CXX/over/over.oper/over.literal/p2.cpp | |
parent | a9e88b2549add9766382c70d270dfd89fa33f7cf (diff) |
Literal operator suffixes and regular names live in separate namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/over/over.oper/over.literal/p2.cpp')
-rw-r--r-- | test/CXX/over/over.oper/over.literal/p2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CXX/over/over.oper/over.literal/p2.cpp b/test/CXX/over/over.oper/over.literal/p2.cpp index fb11ca5578..d0dfde439e 100644 --- a/test/CXX/over/over.oper/over.literal/p2.cpp +++ b/test/CXX/over/over.oper/over.literal/p2.cpp @@ -25,3 +25,9 @@ void f() { extern "C++" { void operator "" _g(const char *); } + +template<char...> void operator "" _h() {} + +template<> void operator "" _h<'a', 'b', 'c'>() {} + +template void operator "" _h<'a', 'b', 'c', 'd'>(); |