Skip to content

Commit 3e11269

Browse files
author
Daniel Kroening
committed
test for __float80 and __float128
1 parent be6e3b6 commit 3e11269

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// for gcc, __float80 and __float128 are typedefs
2+
// for clang, __float128 is a keyword, and __float80 doesn't exist.
3+
4+
#ifdef __clang__
5+
int __float80;
6+
__float128 f128;
7+
#else
8+
__float80 f80;
9+
__float128 f128;
10+
#endif
11+
12+
int main()
13+
{
14+
#ifndef __clang__
15+
// on gcc, they can be re-declared, as they are identifiers, not keywords
16+
int __float80;
17+
int __float128;
18+
#endif
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE gcc-only
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^CONVERSION ERROR$

0 commit comments

Comments
 (0)