view gcc/testsuite/g++.dg/cpp0x/decl-loc1.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do compile { target c++11 } }

inline struct A;      // { dg-error "1:'inline'" }
virtual struct B;     // { dg-error "1:'virtual'" }
friend struct C;      // { dg-error "1:'friend'" }
explicit struct D;    // { dg-error "1:'explicit'" }
mutable struct E;     // { dg-error "1:a storage class" }
const struct F;       // { dg-error "1:'const'" }
volatile struct G;    // { dg-error "1:'volatile'" }
__restrict struct H;  // { dg-error "1:'__restrict'" }
__thread struct I;    // { dg-error "1:'__thread'" }
typedef struct J;     // { dg-warning "1:'typedef'" }
constexpr struct K;   // { dg-error "1:'constexpr'" }