aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/lex/lex.literal/lex.ext/p10.cpp
blob: 7fbd9f8e4be636ff9122253f872e45badc370c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -std=c++11 -verify %s

using size_t = decltype(sizeof(int));
void operator "" wibble(const char *); // expected-warning {{preempted}}
void operator "" wibble(const char *, size_t); // expected-warning {{preempted}}

template<typename T>
void f() {
  // A program containing a reserved ud-suffix is ill-formed.
  // FIXME: Reject these for the right reason.
  123wibble; // expected-error {{suffix 'wibble'}}
  123.0wibble; // expected-error {{suffix 'wibble'}}
  ""wibble; // expected-warning {{unused}}
  R"x("hello")x"wibble; // expected-warning {{unused}}
}