OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
G++ no longer defines builtins that do not begin with __builtin.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
builtins3.C
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
12
int main ()
13
{
14
using namespace std;
15
void *foo;
16
17
foo = ::__builtin_alloca (32);
18
if (!foo)
19
abort ();
20
21
return 0;
22
}
23