[cfe-commits] r72500 - in /cfe/trunk: include/clang/Basic/TokenKinds.def test/Sema/gnu89.c
Eli Friedman
eli.friedman at gmail.com
Wed May 27 15:48:35 PDT 2009
Author: efriedma
Date: Wed May 27 17:48:34 2009
New Revision: 72500
URL: http://llvm.org/viewvc/llvm-project?rev=72500&view=rev
Log:
restrict is not a keyword in gnu89 mode. Change TokenKinds.def to
reflect that.
Added:
cfe/trunk/test/Sema/gnu89.c
Modified:
cfe/trunk/include/clang/Basic/TokenKinds.def
Modified: cfe/trunk/include/clang/Basic/TokenKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TokenKinds.def?rev=72500&r1=72499&r2=72500&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TokenKinds.def (original)
+++ cfe/trunk/include/clang/Basic/TokenKinds.def Wed May 27 17:48:34 2009
@@ -203,7 +203,7 @@
KEYWORD(int , KEYALL)
KEYWORD(long , KEYALL)
KEYWORD(register , KEYALL)
-KEYWORD(restrict , KEYC99|KEYGNU)
+KEYWORD(restrict , KEYC99)
KEYWORD(return , KEYALL)
KEYWORD(short , KEYALL)
KEYWORD(signed , KEYALL)
Added: cfe/trunk/test/Sema/gnu89.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/gnu89.c?rev=72500&view=auto
==============================================================================
--- cfe/trunk/test/Sema/gnu89.c (added)
+++ cfe/trunk/test/Sema/gnu89.c Wed May 27 17:48:34 2009
@@ -0,0 +1,3 @@
+// RUN: clang-cc %s -std=gnu89 -pedantic -fsyntax-only -verify
+
+int f(int restrict);
More information about the cfe-commits
mailing list