OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [sysmac2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-std=gnu99 -pedantic -Wtraditional" } */
5
 
6
/* Tests diagnostics are suppressed for some macros defined in system
7
   headers.  */
8
 
9
/* Source: Neil Booth, 15 Jan 2001.  */
10
 
11
#include "syshdr.h"
12
 
13
#define uint 1U
14
#define fl 1.0f
15
#define ld 1.0L
16
 
17
int
18
main ()
19
{
20
  int u1 = uint;                /* { dg-warning "traditional C rejects" } */
21
  int u2 = sys_uint;            /* { dg-bogus "traditional C rejects" } */
22
  float f1 = fl;                /* { dg-warning "traditional C rejects" } */
23
  float f2 = sys_fl;            /* { dg-bogus "traditional C rejects" } */
24
  long double ld1 = ld;         /* { dg-warning "traditional C rejects" } */
25
  long double l2 = sys_ld;      /* { dg-bogus "traditional C rejects" } */
26
 
27
  return 0;
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.