Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1024)

Side by Side Diff: ppapi/generators/test_parser/struct.idl

Issue 7272043: Update Lexer/Parser to support '#inline' and 'label' (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/generators/test_parser/interface.idl ('k') | ppapi/generators/test_parser/typedef.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* Tests for structures */ 6 /* Tests for structures */
7 7
8 /* OK Struct(S1) */ 8 /* OK Struct(S1) */
9 struct S1 { 9 struct S1 {
10 /* OK Member(Mem1) */ 10 /* OK Member(Mem1) */
11 PP_Bool Mem1; 11 PP_Bool Mem1;
12 /* OK Member(Mem2) */ 12 /* OK Member(Mem2) */
13 PP_Resource Mem2; 13 PP_Resource Mem2;
14 }; 14 };
15 15
16 typedef int[] func(int x, int y); 16 typedef int func([in] int x, [in] int y);
17 17
18 /* OK Struct(S2) */ 18 /* OK Struct(S2) */
19 struct S2 { 19 struct S2 {
20 /* OK Member(Mem1) */ 20 /* OK Member(Mem1) */
21 PP_Bool Mem1; 21 PP_Bool Mem1;
22 /* OK Member(Mem2) */ 22 /* OK Member(Mem2) */
23 PP_Resource Mem2; 23 PP_Resource Mem2;
24 /* OK Member(Mem3) */ 24 /* OK Member(Mem3) */
25 [ATTRIBUTE] PP_Resource Mem3; 25 [attr1, attr2] PP_Resource Mem3;
26 /* OK Member(foo) */ 26 /* OK Member(foo) */
27 FuncFoo foo; 27 FuncFoo foo;
28 }; 28 };
29 29
30 /* FAIL Struct missing name. */ 30 /* FAIL Struct missing name. */
31 struct { 31 struct {
32 PP_Bool Mem1; 32 PP_Bool Mem1;
33 PP_Resource Mem2; 33 PP_Resource Mem2;
34 }; 34 };
OLDNEW
« no previous file with comments | « ppapi/generators/test_parser/interface.idl ('k') | ppapi/generators/test_parser/typedef.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698