Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/udlit-args-neg.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
// { dg-do compile { target c++11 } } #include <cstddef> class Foo { }; int operator"" _Foo(); // { dg-error "has invalid argument list" } Foo operator"" _Foo(int *); // { dg-error "has invalid argument list" } Foo operator"" _Foo(unsigned long int); // { dg-error "has invalid argument list" } Foo operator"" _Foo(double); // { dg-error "has invalid argument list" } Foo operator"" _Foo(const float *, std::size_t); // { dg-error "has invalid argument list" } Foo operator"" _Foo(const wchar_t *, int); // { dg-error "has invalid argument list" } Foo operator"" _Foo(const char16_t *); // { dg-error "has invalid argument list" } Foo operator"" _Foo(char...); // { dg-error "has invalid argument list" } Foo operator"" _Foo(unsigned long long int, char); // { dg-error "has invalid argument list" } Foo operator"" _Foo(const char *, std::size_t, int); // { dg-error "has invalid argument list" } Foo operator"" _Foo(long double &); // { dg-error "has invalid argument list" } Foo operator"" _Foo(std::size_t, const char16_t *); // { dg-error "has invalid argument list" }