c90.c revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1/* RUN: clang-cc -std=c90 -fsyntax-only %s -verify -pedantic-errors
2 */
3
4enum { cast_hex = (long) (
5      0x0p-1   /* expected-error {{hexadecimal floating constants are a C99 feature}} */
6     ) };
7
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
14