]> granicus.if.org Git - clang/commit
Make sure we get extension diagnostics for GCC's complex extensions.
authorSteve Naroff <snaroff@apple.com>
Fri, 24 Aug 2007 17:20:07 +0000 (17:20 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 24 Aug 2007 17:20:07 +0000 (17:20 +0000)
commit084f9ed404a4cb266a2b5343b7bfb8393cf4aeea
treeb8ea4c409e9c92c1dcdbfce3cb16baebb164a53d
parentdfce2a51a78455c915722bc05f07c41e600220c9
Make sure we get extension diagnostics for GCC's complex extensions.

Now we emit the following when -pedantic-errors is enabled...

[dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang complex.c -pedantic-errors
complex.c:4:3: error: ISO C does not support '++'/'--' on complex integer types
  ++x;
  ^ ~
complex.c:9:7: error: ISO C does not support '~' for complex conjugation
  X = ~Y;
      ^
complex.c:10:7: error: ISO C does not support '~' for complex conjugation
  x = ~y;
      ^

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41362 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaExpr.cpp
include/clang/Basic/DiagnosticKinds.def