brintos

brintos / llvm-project-archived public Read only

0
0
Text · 392 B · 93fad2f Raw
8 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2 3// FIXME: We should catch the case of tag with an incomplete type here (which4// will necessarily be ill-formed as a trailing return type for a function5// definition), and recover with a "type cannot be defined in a trailing return6// type" error.7auto j() -> enum { e3 }; // expected-error{{unnamed enumeration must be a definition}}8