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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [builtins4.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// { dg-options "-O2" }
3
// Test whether this builtin minimally works in G++.
4
// Origin: Kaveh Ghazi Jan 16, 2001
5
// Copyright (C) 2001 Free Software Foundation.
6
//
7
 
8
namespace std
9
{
10
  extern "C" void abort (void);
11
}
12
 
13
int main ()
14
{
15
  using namespace std;
16
 
17
  ::__builtin_printf ("hello world\n");
18
  ::__builtin_printf ("\n");
19
  ::__builtin_printf ("%s\n", "hello world");
20
  ::__builtin_printf ("%c", '\n');
21
 
22
  return 0;
23
}
24
 

powered by: WebSVN 2.1.0

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