summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
blob: 10ff69b7a2b6b799ab869a9b4f13faed03a20dfd (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=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" }
OpenPOWER on IntegriCloud