OSDN Git Service

PR c++/51475 - ICE with invalid initializer-list
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / udlit-args-neg.C
1 // { dg-options -std=c++0x }
2
3 #include <cstddef>
4
5 class Foo { };
6
7 int
8 operator"" _Foo();      // { dg-error "has invalid argument list" }
9
10 Foo
11 operator"" _Foo(int *); // { dg-error "has invalid argument list" }
12
13 Foo
14 operator"" _Foo(unsigned long int);     // { dg-error "has invalid argument list" }
15
16 Foo
17 operator"" _Foo(double);        // { dg-error "has invalid argument list" }
18
19 Foo
20 operator"" _Foo(const float *, std::size_t);    // { dg-error "has invalid argument list" }
21
22 Foo
23 operator"" _Foo(const wchar_t *, int);  // { dg-error "has invalid argument list" }
24
25 Foo
26 operator"" _Foo(const char16_t *);      // { dg-error "has invalid argument list" }
27
28 Foo
29 operator"" _Foo(char...);       // { dg-error "has invalid argument list" }
30
31 Foo
32 operator"" _Foo(unsigned long long int, char);  // { dg-error "has invalid argument list" }
33
34 Foo
35 operator"" _Foo(const char *, std::size_t, int);        // { dg-error "has invalid argument list" }
36
37 Foo
38 operator"" _Foo(long double &); // { dg-error "has invalid argument list" }
39
40 Foo
41 operator"" _Foo(std::size_t, const char16_t *); // { dg-error "has invalid argument list" }