]> granicus.if.org Git - clang/commit
add some simple designator testcases. Reject things like this:
authorChris Lattner <sabre@nondot.org>
Sun, 26 Oct 2008 23:22:23 +0000 (23:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Oct 2008 23:22:23 +0000 (23:22 +0000)
commit79ed6b5902ed92175b70ed3c4d7b3f239af847ce
tree4adb53cb34d82e1410fb0a1f1404be79124f0f49
parente232942571a80549514791bbdbbd0bb44fab6b56
add some simple designator testcases.  Reject things like this:

struct foo Y[10] = {
  [4] .arr [2] 4  // expected-error {{expected '=' or another designator}}
};

because the "missing equals" extension only is valid if there
is exactly one array designator.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58215 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticKinds.def
include/clang/Parse/Designator.h
lib/Parse/ParseInit.cpp
test/Parser/designator.c [new file with mode: 0644]