diag0038.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 43 行
C
43 行
struct {
int a;
double x;
};
int d;
union { int a; double d; };
static union { int i1; double d1; };
union { int i2; double d2; } static;
struct NEST1 {
typedef union { int i1; double d1; };
union { int i2; double d2; } static;
};
static union {
protected:
int protected1;
private:
int private1;
public:
void foo( int );
friend void friendly_foo( int );
enum { A, B, C };
typedef int T;
};
struct NEST2 {
int a;
union {
double a;
float f;
};
};
void fn1( void )
{
typedef union { int a; char c; };
union { int i1; long l1; };
union { float f1; double d1; } static;
a = 1;
f1 = 1;
l1 = f1;
}
void bad_location( union { int b1; char b2; } )
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?