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