blob: 88389cea19ec17f08aaf1c6fccb18405980133c0 [file] [log] [blame]
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. */
/* This file tests parsing of typedefs under different conditions */
/* OK Typedef(T1) */
typedef int32_t T1;
/* FAIL Unexpected comment after symbol T2. */
typedef int32_t T2
/* OK Typedef(T3) */
typedef int32_t[] T3;
/* OK Typedef(T4) */
typedef int32_t[][4] T4;
/* FAIL Unexpected "(" after symbol T5. */
typedef int32_t[4] T5();
/* OK Typedef(T6) */
typedef int32_t T6([in] int32_t x);
/* OK Typedef(T7) */
typedef int32_t T7(
/* OK Param(x) */
[in] int32_t x,
/* OK Param(y) */
[in] int32_t y);
/* OK Typedef(T8) */
typedef T3 T8(
/* OK Param(x) */
[in] int x,
/* OK Param(y) */
[in] int y,
/* OK Param(z) */
/* FAIL Missing argument. */
[in] int z,);
/* FAIL Unexpected keyword "enum" after symbol int32_t. */
typedef int32_t enum;
/* FAIL Unexpected ";" after symbol foo. */
typedef foo;