summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/builtins4.C
blob: 2cb1552e22bd42165869b92405e2d6be51e937f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do run  }
// { dg-options "-O2" }
// Test whether this builtin minimally works in G++.
// Origin: Kaveh Ghazi Jan 16, 2001
// Copyright (C) 2001 Free Software Foundation.
//

namespace std 
{
  extern "C" void abort (void);
}

int main ()
{
  using namespace std;
  
  ::__builtin_printf ("hello world\n");
  ::__builtin_printf ("\n");
  ::__builtin_printf ("%s\n", "hello world");
  ::__builtin_printf ("%c", '\n');
  
  return 0;
}