1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
3 using size_t = decltype(sizeof(int));
5 template<typename T
, typename U
> struct same_type
;
6 template<typename T
> struct same_type
<T
, T
> {};
7 template<typename T
> using X
= T
;
8 template<typename CharT
, X
<CharT
>...>
9 int operator "" _x(); // expected-warning {{string literal operator templates are a GNU extension}}
11 double operator "" _x();
15 same_type
<decltype(a
), int> test_a
;
16 same_type
<decltype(b
), double> test_b
;
18 char operator "" _x(const char *begin
, size_t size
);
21 same_type
<decltype(c
), char> test_c
;
22 same_type
<decltype(d
), int> test_d
;