aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
blob: 3093a7c055d119e9d19e352c4e8b29b23aeae0a1 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++11 } }

#include <string>

std::string operator"" _xxx(const char*, size_t);

std::string operator"" _yyy(const char*, size_t);

std::string concat = "Hello, "_xxx "World!"_yyy;	// { dg-error "inconsistent user-defined literal suffixes" }