PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / udlit-enc-prefix-neg.C
blob039ab2fb45178b7ddcf446c37a02f60519bd2438
1 // { dg-do compile { target c++14 } }
3 int
4 operator L""_Ls(unsigned long long) // { dg-error "invalid encoding prefix in literal operator" }
5 { return 0; }
7 int
8 operator u""_s16(unsigned long long) // { dg-error "invalid encoding prefix in literal operator" }
9 { return 0; }
11 int
12 operator U""_s32(unsigned long long) // { dg-error "invalid encoding prefix in literal operator" }
13 { return 0; }
15 int
16 operator u8""_u8s(unsigned long long) // { dg-error "invalid encoding prefix in literal operator" }
17 { return 0; }