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

📄 tests.flunk

📁 GUN开源阻止下的编译器GCC
💻 FLUNK
字号:
This is a collection of things that test suites havesaid were "wrong" with GCC--but that I don't agree with.First, test suites sometimes test for compatibility withtraditional C.  GCC with -traditional is not completelycompatible with traditional C, and in some ways I think itshould not be.* K&R C allowed \x to appear in a string literal (or characterliteral?)  even in cases where it is *not* followed by a sequence ofhex digits.  I'm not convinced this is desirable.* K&R compilers allow comments to cross over an inclusion boundary (i.e.started in an include file and ended in the including file).I think this would be quite ugly and can't imagine it couldbe needed.Sometimes tests disagree with GCC's interpretation of the ANSI standard.* One test claims that this function should return 1.    enum {A, B} foo;    func (enum {B, A} arg)    {      return B;    }I think it should return 0, because the definition of B thatapplies is the one in func.* Some tests report failure when the compiler does not producean error message for a certain program.ANSI C requires a "diagnostic" message for certain kinds of invalidprograms, but a warning counts as a diagnostic.  If GCC producesa warning but not an error, that is correct ANSI support.When test suites call this "failure", the tests are broken.

⌨️ 快捷键说明

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