1 // PR c++/51186 2 3 auto main()->int // { dg-error "std=" "std" { target { ! c++11 } } } 4 // { dg-error "auto" "auto" { target { ! c++11 } } .-1 } 5 // { dg-error "no type" "no type" { target { ! c++11 } } .-2 } 6 { } 7