// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
;
;
; // expected-note {{not viable}}
non_const_copy& ; // expected-note {{not viable}}
non_const_copy& ; // expected-note {{not viable}}
void ;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
void
;
;
;
;
; struct B ;
;
;
;
;
;
;
// FIXME: This should error because this exception spec is not
// compatible with the implicit exception spec.
;
// FIXME: This should error because this exception spec is not
// compatible with the implicit exception spec.
;
;
// gcc-compatibility: allow attributes on default definitions
// (but not normal definitions)
;
= default;
using size_t = decltype;
void *operator new = delete; // expected-error {{deleted definition must be first declaration}} expected-note {{implicit}}
void operator delete noexcept = delete; // expected-error {{deleted definition must be first declaration}} expected-note {{implicit}}
// FIXME: Diagnosing the call as "no matching function" due to substitution
// failure is not ideal.
void ; // expected-note {{previous}}
void ; // expected-error {{must be first decl}} expected-note {{substitution failure}}
void // expected-error {{no matching function}}
;
void ; // expected-error {{must be first decl}} expected-note {{substitution failure}}
void // expected-error {{no matching function}}