blob: d76c73ddc3d33c46bd08c61743caab480b914c38 [file] [log] [blame]
Chris Lattner806c3b92008-07-25 18:42:46 +00001/* RUN: clang -std=c90 -fsyntax-only %s -verify -pedantic-errors
2 */
Chris Lattner921e9ff2007-11-14 16:14:50 +00003
4enum { cast_hex = (long) (
Chris Lattner806c3b92008-07-25 18:42:46 +00005 0x0p-1 /* expected-error {{hexadecimal floating constants are a C99 feature}} */
Chris Lattner921e9ff2007-11-14 16:14:50 +00006 ) };
Chris Lattner8402c732009-01-16 22:39:25 +00007
8/* PR2477 */
9int test1(int a,int b) {return a//* This is a divide followed by block comment in c89 mode */
10b;}
11
12// comment accepted as extension /* expected-error {{// comments are not allowed in this language}}
13