Test case, maybe? You can test this with expected-error-re to add a $ to
the end of the expected diagnostic string to ensure it doesn't have
trailing text, for example.


On Sat, Nov 2, 2013 at 5:16 PM, David Majnemer <[email protected]>wrote:

> Author: majnemer
> Date: Sat Nov  2 19:16:44 2013
> New Revision: 193936
>
> URL: http://llvm.org/viewvc/llvm-project?rev=193936&view=rev
> Log:
> Fix typo in err_flexible_array_empty_aggregate
>
> Modified:
>     cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
>
> Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=193936&r1=193935&r2=193936&view=diff
>
> ==============================================================================
> --- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
> +++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Sat Nov  2
> 19:16:44 2013
> @@ -3942,7 +3942,7 @@ def err_flexible_array_virtual_base : Er
>    "%select{struct|interface|union|class|enum}1 which has a virtual base
> class">;
>  def err_flexible_array_empty_aggregate : Error<
>    "flexible array member %0 not allowed in otherwise empty "
> -  "%select{struct|interface|union|class|enum}1 is not allowed">;
> +  "%select{struct|interface|union|class|enum}1">;
>  def err_flexible_array_has_nonpod_type : Error<
>    "flexible array member %0 of non-POD element type %1">;
>  def ext_flexible_array_in_struct : Extension<
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to