blob: d743d68cd50132134df585adb014888472038365 [file] [log] [blame]
Daniel Dunbarffd408a2009-03-24 02:24:46 +00001/* RUN: clang-cc -std=c90 -fsyntax-only %s -verify -pedantic-errors
Chris Lattner65691aa2008-07-25 18:42:46 +00002 */
Chris Lattnerfea8ce12007-11-14 16:14:50 +00003
4enum { cast_hex = (long) (
Chris Lattner65691aa2008-07-25 18:42:46 +00005 0x0p-1 /* expected-error {{hexadecimal floating constants are a C99 feature}} */
Chris Lattnerfea8ce12007-11-14 16:14:50 +00006 ) };
Chris Lattner43e455d2009-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