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/] [pr40209.c] - Blame information for rev 311

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fprofile-use" } */
3
 
4
void process(const char *s);
5
 
6
struct BaseHolder {
7
  unsigned int base_;
8
};
9
 
10
void UInt2Str(struct BaseHolder *b, unsigned int x) {
11
  static const char digit[] = "0123456789abcdefghijklmnopqrstuvwxyz";
12
  char buf[100];
13
  int i = 100;
14
  do {
15
    buf[--i] = digit[x % b->base_];
16
    x /= b->base_;
17
  } while (x > 0);
18
  process(buf);
19
}
20
 
21
/* Ignore a warning that is irrelevant to the purpose of this test.  */
22
/* { dg-prune-output ".*\.gcda not found, execution counts estimated.*" } */

powered by: WebSVN 2.1.0

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