Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / udlit-inline.C
blob4092d071bf2b310b10c72ff8fd5945a7eef80347
1 // { dg-do compile { target c++11 } }
3 //  Literal operators can be inline.
5 inline int
6 operator ""_thing1(char cc)
7 { return 42 * cc; }
9 int operator ""_thing2(char cc);
11 class Foo
13   int
14   friend operator ""_thing2(char cc)
15   { return 42 * cc; }
18 int i = operator ""_thing1('x');
19 int j = 'x'_thing1;
21 int iF = operator ""_thing2('x');
22 int jF = 'x'_thing2;