⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typespec-1.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
📖 第 1 页 / 共 5 页
字号:
/* Test for valid and invalid combinations of type specifiers.   This test covers combinations of the reserved word type specifiers   other than _Complex and _Imaginary, and a typedef name as the first   specifier only.  Within those constraints, there are no GCC extensions   and what is accepted should be exactly what C99 permits.  All   sequences are tested which do not have a shorter invalid initial   subsequence.  Within the given constraints, there are no valid sequences   with an invalid initial subsequence.   In particular, the example of PR c/4319 should be rejected unconditionally,   not requiring -pedantic.  *//* Origin: Joseph Myers <jsm28@cam.ac.uk> *//* { dg-do compile } *//* { dg-options "-std=gnu99" } */typedef char type;void *x0;char *x1;short *x2;int *x3;long *x4;float *x5;double *x6;signed *x7;unsigned *x8;_Bool *x9;type *x10;void void *x11; /* { dg-error "error" "void void" } */void char *x12; /* { dg-error "error" "void char" } */void short *x13; /* { dg-error "error" "void short" } */void int *x14; /* { dg-error "error" "void int" } */void long *x15; /* { dg-error "error" "void long" } */void float *x16; /* { dg-error "error" "void float" } */void double *x17; /* { dg-error "error" "void double" } */void signed *x18; /* { dg-error "error" "void signed" } */void unsigned *x19; /* { dg-error "error" "void unsigned" } */void _Bool *x20; /* { dg-error "error" "void _Bool" } */char void *x21; /* { dg-error "error" "char void" } */char char *x22; /* { dg-error "error" "char char" } */char short *x23; /* { dg-error "error" "char short" } */char int *x24; /* { dg-error "error" "char int" } */char long *x25; /* { dg-error "error" "char long" } */char float *x26; /* { dg-error "error" "char float" } */char double *x27; /* { dg-error "error" "char double" } */char signed *x28;char unsigned *x29;char _Bool *x30; /* { dg-error "error" "char _Bool" } */short void *x31; /* { dg-error "error" "short void" } */short char *x32; /* { dg-error "error" "short char" } */short short *x33; /* { dg-error "error" "short short" } */short int *x34;short long *x35; /* { dg-error "error" "short long" } */short float *x36; /* { dg-error "error" "short float" } */short double *x37; /* { dg-error "error" "short double" } */short signed *x38;short unsigned *x39;short _Bool *x40; /* { dg-error "error" "short _Bool" } */int void *x41; /* { dg-error "error" "int void" } */int char *x42; /* { dg-error "error" "int char" } */int short *x43;int int *x44; /* { dg-error "error" "int int" } */int long *x45;int float *x46; /* { dg-error "error" "int float" } */int double *x47; /* { dg-error "error" "int double" } */int signed *x48;int unsigned *x49;int _Bool *x50; /* { dg-error "error" "int _Bool" } */long void *x51; /* { dg-error "error" "long void" } */long char *x52; /* { dg-error "error" "long char" } */long short *x53; /* { dg-error "error" "long short" } */long int *x54;long long *x55;long float *x56; /* { dg-error "error" "long float" } */long double *x57;long signed *x58;long unsigned *x59;long _Bool *x60; /* { dg-error "error" "long _Bool" } */float void *x61; /* { dg-error "error" "float void" } */float char *x62; /* { dg-error "error" "float char" } */float short *x63; /* { dg-error "error" "float short" } */float int *x64; /* { dg-error "error" "float int" } */float long *x65; /* { dg-error "error" "float long" } */float float *x66; /* { dg-error "error" "float float" } */float double *x67; /* { dg-error "error" "float double" } */float signed *x68; /* { dg-error "error" "float signed" } */float unsigned *x69; /* { dg-error "error" "float unsigned" } */float _Bool *x70; /* { dg-error "error" "float _Bool" } */double void *x71; /* { dg-error "error" "double void" } */double char *x72; /* { dg-error "error" "double char" } */double short *x73; /* { dg-error "error" "double short" } */double int *x74; /* { dg-error "error" "double int" } */double long *x75;double float *x76; /* { dg-error "error" "double float" } */double double *x77; /* { dg-error "error" "double double" } */double signed *x78; /* { dg-error "error" "double signed" } */double unsigned *x79; /* { dg-error "error" "double unsigned" } */double _Bool *x80; /* { dg-error "error" "double _Bool" } */signed void *x81; /* { dg-error "error" "signed void" } */signed char *x82;signed short *x83;signed int *x84;signed long *x85;signed float *x86; /* { dg-error "error" "signed float" } */signed double *x87; /* { dg-error "error" "signed double" } */signed signed *x88; /* { dg-error "error" "signed signed" } */signed unsigned *x89; /* { dg-error "error" "signed unsigned" } */signed _Bool *x90; /* { dg-error "error" "signed _Bool" } */unsigned void *x91; /* { dg-error "error" "unsigned void" } */unsigned char *x92;unsigned short *x93;unsigned int *x94;unsigned long *x95;unsigned float *x96; /* { dg-error "error" "unsigned float" } */unsigned double *x97; /* { dg-error "error" "unsigned double" } */unsigned signed *x98; /* { dg-error "error" "unsigned signed" } */unsigned unsigned *x99; /* { dg-error "error" "unsigned unsigned" } */unsigned _Bool *x100; /* { dg-error "error" "unsigned _Bool" } */_Bool void *x101; /* { dg-error "error" "_Bool void" } */_Bool char *x102; /* { dg-error "error" "_Bool char" } */_Bool short *x103; /* { dg-error "error" "_Bool short" } */_Bool int *x104; /* { dg-error "error" "_Bool int" } */_Bool long *x105; /* { dg-error "error" "_Bool long" } */_Bool float *x106; /* { dg-error "error" "_Bool float" } */_Bool double *x107; /* { dg-error "error" "_Bool double" } */_Bool signed *x108; /* { dg-error "error" "_Bool signed" } */_Bool unsigned *x109; /* { dg-error "error" "_Bool unsigned" } */_Bool _Bool *x110; /* { dg-error "error" "_Bool _Bool" } */type void *x111; /* { dg-error "error" "type void" } */type char *x112; /* { dg-error "error" "type char" } */type short *x113; /* { dg-error "error" "type short" } */type int *x114; /* { dg-error "error" "type int" } */type long *x115; /* { dg-error "error" "type long" } */type float *x116; /* { dg-error "error" "type float" } */type double *x117; /* { dg-error "error" "type double" } */type signed *x118; /* { dg-error "error" "type signed" } */type unsigned *x119; /* { dg-error "error" "type unsigned" } */type _Bool *x120; /* { dg-error "error" "type _Bool" } */char signed void *x121; /* { dg-error "error" "char signed void" } */char signed char *x122; /* { dg-error "error" "char signed char" } */char signed short *x123; /* { dg-error "error" "char signed short" } */char signed int *x124; /* { dg-error "error" "char signed int" } */char signed long *x125; /* { dg-error "error" "char signed long" } */char signed float *x126; /* { dg-error "error" "char signed float" } */char signed double *x127; /* { dg-error "error" "char signed double" } */char signed signed *x128; /* { dg-error "error" "char signed signed" } */char signed unsigned *x129; /* { dg-error "error" "char signed unsigned" } */char signed _Bool *x130; /* { dg-error "error" "char signed _Bool" } */char unsigned void *x131; /* { dg-error "error" "char unsigned void" } */char unsigned char *x132; /* { dg-error "error" "char unsigned char" } */char unsigned short *x133; /* { dg-error "error" "char unsigned short" } */char unsigned int *x134; /* { dg-error "error" "char unsigned int" } */char unsigned long *x135; /* { dg-error "error" "char unsigned long" } */char unsigned float *x136; /* { dg-error "error" "char unsigned float" } */char unsigned double *x137; /* { dg-error "error" "char unsigned double" } */char unsigned signed *x138; /* { dg-error "error" "char unsigned signed" } */char unsigned unsigned *x139; /* { dg-error "error" "char unsigned unsigned" } */char unsigned _Bool *x140; /* { dg-error "error" "char unsigned _Bool" } */short int void *x141; /* { dg-error "error" "short int void" } */short int char *x142; /* { dg-error "error" "short int char" } */short int short *x143; /* { dg-error "error" "short int short" } */short int int *x144; /* { dg-error "error" "short int int" } */short int long *x145; /* { dg-error "error" "short int long" } */short int float *x146; /* { dg-error "error" "short int float" } */short int double *x147; /* { dg-error "error" "short int double" } */short int signed *x148;short int unsigned *x149;short int _Bool *x150; /* { dg-error "error" "short int _Bool" } */short signed void *x151; /* { dg-error "error" "short signed void" } */short signed char *x152; /* { dg-error "error" "short signed char" } */short signed short *x153; /* { dg-error "error" "short signed short" } */short signed int *x154;short signed long *x155; /* { dg-error "error" "short signed long" } */short signed float *x156; /* { dg-error "error" "short signed float" } */short signed double *x157; /* { dg-error "error" "short signed double" } */short signed signed *x158; /* { dg-error "error" "short signed signed" } */short signed unsigned *x159; /* { dg-error "error" "short signed unsigned" } */short signed _Bool *x160; /* { dg-error "error" "short signed _Bool" } */short unsigned void *x161; /* { dg-error "error" "short unsigned void" } */short unsigned char *x162; /* { dg-error "error" "short unsigned char" } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -