- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / generators / test_parser / typedef.idl
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
3   found in the LICENSE file. */
4
5 /* This file tests parsing of typedefs under different conditions */
6
7 /* OK Typedef(T1) */
8 typedef int32_t T1;
9
10 /* FAIL Unexpected comment after symbol T2. */
11 typedef int32_t T2
12
13 /* OK Typedef(T3) */
14 typedef int32_t[] T3;
15
16 /* OK Typedef(T4) */
17 typedef int32_t[][4] T4;
18
19 /* FAIL Unexpected "(" after symbol T5. */
20 typedef int32_t[4] T5();
21
22 /* OK Typedef(T6) */
23 typedef int32_t T6([in] int32_t x);
24
25 /* OK Typedef(T7) */
26 typedef int32_t T7(
27   /* OK Param(x) */
28   [in] int32_t x,
29   /* OK Param(y) */
30   [in] int32_t y);
31
32 /* OK Typedef(T8) */
33 typedef T3 T8(
34   /* OK Param(x) */
35   [in] int x,
36   /* OK Param(y) */
37   [in] int y,
38   /* OK Param(z) */
39   /* FAIL Missing argument. */
40   [in] int z,);
41
42 /* FAIL Unexpected keyword "enum" after symbol int32_t. */
43 typedef int32_t enum;
44
45 /* FAIL Unexpected ";" after symbol foo. */
46 typedef foo;