blob: d743d68cd50132134df585adb014888472038365 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001/* RUN: clang-cc -std=c90 -fsyntax-only %s -verify -pedantic-errors
Chris Lattner806c3b92008-07-25 18:42:46 +00002 */
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