1/* 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7/** 8 * This file will test that the IDL snippet matches the comment. 9 */ 10 11label Chrome { 12 M14=1.0 13}; 14 15/* typedef uint8_t s_array[3]; */ 16typedef uint8_t[3] s_array; 17 18/* typedef enum { esv1 = 1, esv2 = 2 } senum; */ 19enum senum { 20 esv1=1, 21 esv2=2 22}; 23 24/* struct st1 { int32_t i; senum j; }; */ 25struct st1 { 26 int32_t i; 27 senum j; 28}; 29 30/* struct st2 { s_array pixels[640][480]; }; */ 31struct st2 { 32 s_array[640][480] pixels; 33}; 34 35/* typedef float (*func_t)(const s_array data); */ 36typedef float_t func_t([in] s_array data); 37 38/* typedef func_t (*findfunc_t)(const char* x); */ 39typedef func_t findfunc_t([in] str_t x); 40 41/* 42 * struct sfoo { 43 * s_array screen[480][640]; 44 * findfunc_t myfunc; 45 * }; 46 */ 47struct sfoo { 48 s_array[480][640] screen; 49 findfunc_t myfunc; 50}; 51