Fix PR2041: restrict is not a keyword in c90.

llvm-svn: 47160
This commit is contained in:
Chris Lattner 2008-02-15 18:02:59 +00:00
parent 9e805b24fd
commit 287c734075
2 changed files with 4 additions and 1 deletions

View File

@ -204,7 +204,7 @@ KEYWORD(inline , EXTC90) // Ext in C90, ok in C99/C++
KEYWORD(int , 0)
KEYWORD(long , 0)
KEYWORD(register , 0)
KEYWORD(restrict , EXTC90) // Ext in C90
KEYWORD(restrict , NOTC90) // Not in C90
KEYWORD(return , 0)
KEYWORD(short , 0)
KEYWORD(signed , 0)

View File

@ -30,3 +30,6 @@ int test4 = 0LL; /* expected-warning {{long long}} */
/* PR1999 */
void test5(register);
/* PR2041 */
int *restrict;