parse3.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 24 行

C
24
字号
// Build don't link: // crash test// these are marked as expected errors because they evidence an// ambiguity in the grammar between expressions and declarations.// when the parser's been cleaned up or rewritten, these two error// markers can go away, since they'll no longer occur.class A{  public:    int high;    unsigned int low;    A operator+(const A in);};A A::operator+(const A in){    if (high==0)      return A();    // this works    else      return (A());  // this works not // gets bogus error - XFAIL *-*-* }

⌨️ 快捷键说明

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