blob: 4a1630b013d3c607ae4f69e29541e84c0e043d98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Test whether this builtin minimally works in G++.
// Origin: Kaveh Ghazi Jan 16, 2001
// Copyright (C) 2001 Free Software Foundation.
//
// Special g++ Options: -O2
namespace std
{
extern "C" void abort (void);
}
int main ()
{
using namespace std;
if (::__builtin_strlen ("hello") != 5)
abort ();
return 0;
}
|