typespec.c
来自「用于进行gcc测试」· C语言 代码 · 共 304 行 · 第 1/2 页
C
304 行
/* Test for valid and invalid combinations of type specifiers. Based off gcc.dg/test-spec-1.c *//* { dg-do compile } *//* { dg-options "-std=gnu99" } */typedef char type;void _Decimal32 *x0; /* { dg-error "" "void _Decimal32" } */void _Decimal64 *x1; /* { dg-error "" "void _Decimal64" } */void _Decimal128 *x2; /* { dg-error "" "void _Decimal128" } */char _Decimal32 *x3; /* { dg-error "" "char _Decimal32" } */char _Decimal64 *x4; /* { dg-error "" "char _Decimal64" } */char _Decimal128 *x5; /* { dg-error "" "char _Decimal128" } */short _Decimal32 *x6; /* { dg-error "" "short _Decimal32" } */short _Decimal64 *x7; /* { dg-error "" "short _Decimal64" } */short _Decimal128 *x8; /* { dg-error "" "short _Decimal128" } */int _Decimal32 *x9; /* { dg-error "" "int _Decimal32" } */int _Decimal64 *x10; /* { dg-error "" "int _Decimal64" } */int _Decimal128 *x11; /* { dg-error "" "int _Decimal128" } */long _Decimal32 *x12; /* { dg-error "" "long _Decimal32" } */long _Decimal64 *x13; /* { dg-error "" "long _Decimal64" } */long _Decimal128 *x14; /* { dg-error "" "long _Decimal128" } */float _Decimal32 *x15; /* { dg-error "" "float _Decimal32" } */float _Decimal64 *x16; /* { dg-error "" "float _Decimal64" } */float _Decimal128 *x17; /* { dg-error "" "float _Decimal128" } */double _Decimal32 *x18; /* { dg-error "" "double _Decimal32" } */double _Decimal64 *x19; /* { dg-error "" "double _Decimal64" } */double _Decimal128 *x20; /* { dg-error "" "double _Decimal128" } */signed _Decimal32 *x21; /* { dg-error "" "signed _Decimal32" } */signed _Decimal64 *x22; /* { dg-error "" "signed _Decimal64" } */signed _Decimal128 *x23; /* { dg-error "" "signed _Decimal128" } */_Bool _Decimal32 *x24; /* { dg-error "" "_Bool _Decimal32" } */_Bool _Decimal64 *x25; /* { dg-error "" "_Bool _Decimal64" } */_Bool _Decimal128 *x26; /* { dg-error "" "_Bool _Decimal128" } */int _Decimal32 *x27; /* { dg-error "" "int _Decimal32" } */int _Decimal64 *x28; /* { dg-error "" "int _Decimal64" } */int _Decimal128 *x29; /* { dg-error "" "int _Decimal128" } */type _Decimal32 *x30; /* { dg-error "" "type _Decimal32" } */type _Decimal64 *x31; /* { dg-error "" "type _Decimal64" } */type _Decimal128 *x32; /* { dg-error "" "type _Decimal128" } */char signed _Decimal32 *x33; /* { dg-error "" "char signed _Decimal32" } */char signed _Decimal64 *x34; /* { dg-error "" "char signed _Decimal64" } */char signed _Decimal128 *x35; /* { dg-error "" "char signed _Decimal128" } */char unsigned _Decimal32 *x36; /* { dg-error "" "char unsigned _Decimal32" } */char unsigned _Decimal64 *x37; /* { dg-error "" "char unsigned _Decimal64" } */char unsigned _Decimal128 *x38; /* { dg-error "" "char unsigned _Decimal128" } */short _Decimal32 *x39; /* { dg-error "" "short _Decimal32" } */short _Decimal64 *x40; /* { dg-error "" "short _Decimal64" } */short _Decimal128 *x41; /* { dg-error "" "short _Decimal128" } */short signed _Decimal32 *x42; /* { dg-error "" "short signed _Decimal32" } */short signed _Decimal64 *x43; /* { dg-error "" "short signed _Decimal64" } */short signed _Decimal128 *x44; /* { dg-error "" "short signed _Decimal128" } */short unsigned _Decimal32 *x45; /* { dg-error "" "short unsigned _Decimal32" } */short unsigned _Decimal64 *x46; /* { dg-error "" "short unsigned _Decimal64" } */short unsigned _Decimal128 *x47; /* { dg-error "" "short unsigned _Decimal128" } */_Decimal32 short*x48; /* { dg-error "" "_Decimal32 short" } */_Decimal64 short*x49; /* { dg-error "" "_Decimal64 short" } */_Decimal128 short*x50; /* { dg-error "" "_Decimal128 short" } */_Decimal32 short signed*x51; /* { dg-error "" "_Decimal32 short signed" } */_Decimal64 short signed*x52; /* { dg-error "" "_Decimal64 short signed" } */_Decimal128 short signed*x53; /* { dg-error "" "_Decimal128 short signed" } */_Decimal32 short unsigned*x54; /* { dg-error "" "_Decimal32 short unsigned" } */_Decimal64 short unsigned*x55; /* { dg-error "" "_Decimal64 short unsigned" } */_Decimal128 short unsigned*x56; /* { dg-error "" "_Decimal128 short unsigned" } */_Decimal32 long*x57; /* { dg-error "" "_Decimal32 long" } */_Decimal64 long*x58; /* { dg-error "" "_Decimal64 long" } */_Decimal128 long*x59; /* { dg-error "" "_Decimal128 long" } */_Decimal32 long signed*x60; /* { dg-error "" "_Decimal32 long signed" } */_Decimal64 long signed*x61; /* { dg-error "" "_Decimal64 long signed" } */_Decimal128 long signed*x62; /* { dg-error "" "_Decimal128 long signed" } */_Decimal32 long unsigned*x63; /* { dg-error "" "_Decimal32 long unsigned" } */_Decimal64 long unsigned*x64; /* { dg-error "" "_Decimal64 long unsigned" } */_Decimal128 long unsigned*x65; /* { dg-error "" "_Decimal128 long unsigned" } */_Decimal32 signed long*x66; /* { dg-error "" "_Decimal32 signed long" } */_Decimal64 signed long*x67; /* { dg-error "" "_Decimal64 signed long" } */_Decimal128 signed long*x68; /* { dg-error "" "_Decimal128 signed long" } */_Decimal32 signed short*x69; /* { dg-error "" "_Decimal32 signed short" } */_Decimal64 signed short*x70; /* { dg-error "" "_Decimal64 signed short" } */_Decimal128 signed short*x71; /* { dg-error "" "_Decimal128 signed short" } */int signed _Decimal32 *x72; /* { dg-error "" "int signed _Decimal32" } */int signed _Decimal64 *x73; /* { dg-error "" "int signed _Decimal64" } */int signed _Decimal128 *x74; /* { dg-error "" "int signed _Decimal128" } */int unsigned _Decimal32 *x75; /* { dg-error "" "int unsigned _Decimal32" } */int unsigned _Decimal64 *x76; /* { dg-error "" "int unsigned _Decimal64" } */int unsigned _Decimal128 *x77; /* { dg-error "" "int unsigned _Decimal128" } */long int _Decimal32 *x78; /* { dg-error "" "long int _Decimal32" } */long int _Decimal64 *x79; /* { dg-error "" "long int _Decimal64" } */long int _Decimal128 *x80; /* { dg-error "" "long int _Decimal128" } */long long _Decimal32 *x81; /* { dg-error "" "long long _Decimal32" } */long long _Decimal64 *x82; /* { dg-error "" "long long _Decimal64" } */long long _Decimal128 *x83; /* { dg-error "" "long long _Decimal128" } */long double _Decimal32 *x84; /* { dg-error "" "long double _Decimal32" } */long double _Decimal64 *x85; /* { dg-error "" "long double _Decimal64" } */long double _Decimal128 *x86; /* { dg-error "" "long double _Decimal128" } */long signed _Decimal32 *x87; /* { dg-error "" "long signed _Decimal32" } */long signed _Decimal64 *x88; /* { dg-error "" "long signed _Decimal64" } */long signed _Decimal128 *x89; /* { dg-error "" "long signed _Decimal128" } */long unsigned _Decimal32 *x90; /* { dg-error "" "long unsigned _Decimal32" } */long unsigned _Decimal64 *x91; /* { dg-error "" "long unsigned _Decimal64" } */long unsigned _Decimal128 *x92; /* { dg-error "" "long unsigned _Decimal128" } */double long _Decimal32 *x93; /* { dg-error "" "double long _Decimal32" } */double long _Decimal64 *x94; /* { dg-error "" "double long _Decimal64" } */double long _Decimal128 *x95; /* { dg-error "" "double long _Decimal128" } */signed char _Decimal32 *x96; /* { dg-error "" "signed char _Decimal32" } */signed char _Decimal64 *x97; /* { dg-error "" "signed char _Decimal64" } */signed char _Decimal128 *x98; /* { dg-error "" "signed char _Decimal128" } */signed short _Decimal32 *x99; /* { dg-error "" "signed short _Decimal32" } */signed short _Decimal64 *x100; /* { dg-error "" "signed short _Decimal64" } */signed short _Decimal128 *x101; /* { dg-error "" "signed short _Decimal128" } */signed int _Decimal32 *x102; /* { dg-error "" "signed int _Decimal32" } */signed int _Decimal64 *x103; /* { dg-error "" "signed int _Decimal64" } */signed int _Decimal128 *x104; /* { dg-error "" "signed int _Decimal128" } */signed long _Decimal32 *105x; /* { dg-error "" "signed long _Decimal32" } */signed long _Decimal64 *x107; /* { dg-error "" "signed long _Decimal64" } \*/signed long _Decimal128 *x107; /* { dg-error "" "signed long _Decimal128" } \*/unsigned char _Decimal32 *x108; /* { dg-error "" "unsigned char _Decimal32" } */unsigned char _Decimal64 *x109; /* { dg-error "" "unsigned char _Decimal64" } */unsigned char _Decimal128 *x110; /* { dg-error "" "unsigned char _Decimal128" } */unsigned short _Decimal32 *x111; /* { dg-error "" "unsigned short _Decimal32" } */unsigned short _Decimal64 *x112; /* { dg-error "" "unsigned short _Decimal64" } */unsigned short _Decimal128 *x113; /* { dg-error "" "unsigned short _Decimal128" } */unsigned int _Decimal32 *x114; /* { dg-error "" "unsigned int _Decimal32" } */unsigned int _Decimal64 *x115; /* { dg-error "" "unsigned int _Decimal64" } */unsigned int _Decimal128 *x116; /* { dg-error "" "unsigned int _Decimal128" } */unsigned long _Decimal32 *x117; /* { dg-error "" "unsigned long _Decimal32" } */unsigned long _Decimal64 *x118; /* { dg-error "" "unsigned long _Decimal64" } */unsigned long _Decimal128 *x119; /* { dg-error "" "unsigned long _Decimal128" } */short int signed _Decimal32 *x120; /* { dg-error "" "short int signed _Decimal32" } */short int signed _Decimal64 *x121; /* { dg-error "" "short int signed _Decimal64" } */short int signed _Decimal128 *x122; /* { dg-error "" "short int signed _Decimal128" } */short int unsigned _Decimal32 *x123; /* { dg-error "" "short int unsigned _Decimal32" } */short int unsigned _Decimal64 *x124; /* { dg-error "" "short int unsigned _Decimal64" } */short int unsigned _Decimal128 *x125; /* { dg-error "" "short int unsigned _Decimal128" } */short signed int _Decimal32 *x126; /* { dg-error "" "short signed int _Decimal32" } */short signed int _Decimal64 *x127; /* { dg-error "" "short signed int _Decimal64" } */short signed int _Decimal128 *x128; /* { dg-error "" "short signed int _Decimal128" } */short unsigned int _Decimal32 *x129; /* { dg-error "" "short unsigned int _Decimal32" } */short unsigned int _Decimal64 *x130; /* { dg-error "" "short unsigned int _Decimal64" } */short unsigned int _Decimal128 *x131; /* { dg-error "" "short unsigned int _Decimal128" } */int short signed _Decimal32 *x132; /* { dg-error "" "int short signed _Decimal32" } */int short signed _Decimal64 *x133; /* { dg-error "" "int short signed _Decimal64" } */int short signed _Decimal128 *x134; /* { dg-error "" "int short signed _Decimal128" } */int short unsigned _Decimal32 *x135; /* { dg-error "" "int short unsigned _Decimal32" } */int short unsigned _Decimal64 *x136; /* { dg-error "" "int short unsigned _Decimal64" } */int short unsigned _Decimal128 *x137; /* { dg-error "" "int short unsigned _Decimal128" } */int long long _Decimal32 *x138; /* { dg-error "" "int long long _Decimal32" } */int long long _Decimal64 *x139; /* { dg-error "" "int long long _Decimal64" } */int long long _Decimal128 *x140; /* { dg-error "" "int long long _Decimal128" } */int long signed _Decimal32 *x141; /* { dg-error "" "int long signed _Decimal32" } */int long signed _Decimal64 *x142; /* { dg-error "" "int long signed _Decimal64" } */int long signed _Decimal128 *x143; /* { dg-error "" "int long signed _Decimal128" } */int long unsigned _Decimal32 *x144; /* { dg-error "" "int long unsigned _Decimal32" } */int long unsigned _Decimal64 *x145; /* { dg-error "" "int long unsigned _Decimal64" } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?