Skip to content
Snippets Groups Projects
Commit b01c4160 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

add test case for new keywords

parent a82cb3b2
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
STDOPT: #"-cpp-extra-args=-DALIGNOF" STDOPT: #"-cpp-extra-args=-DALIGNOF"
STDOPT: #"-cpp-extra-args=-DCOMPLEX" STDOPT: #"-cpp-extra-args=-DCOMPLEX"
STDOPT: #"-cpp-extra-args=-DIMAGINARY" STDOPT: #"-cpp-extra-args=-DIMAGINARY"
STDOPT: #"-cpp-extra-args=-DDECIMAL"
STDOPT: #"-cpp-extra-args=-DINT128"
STDOPT: #"-cpp-extra-args=-DUINT128"
*/ */
#ifdef ALIGNAS #ifdef ALIGNAS
...@@ -26,5 +29,17 @@ int main(void) { ...@@ -26,5 +29,17 @@ int main(void) {
double _Imaginary im = 0; double _Imaginary im = 0;
#endif #endif
#ifdef DECIMAL
_Decimal32 d32 = 0.25;
#endif
#ifdef INT128
__int128 i128 = -1; // Not C11, but GNU extension
#endif
#ifdef UINT128
__uint128_t ui128 = 9; // Not C11, but GNU extension
#endif
return 0; return 0;
} }
[kernel] Parsing c11-keywords.c (with preprocessing) [kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:11: User Error: [kernel] c11-keywords.c:14: User Error:
_Alignas is currently unsupported by Frama-C. _Alignas is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input. [kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing) [kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:17: User Error: [kernel] c11-keywords.c:20: User Error:
_Alignof is currently unsupported by Frama-C. _Alignof is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input. [kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing) [kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:21: User Error: [kernel] c11-keywords.c:24: User Error:
_Complex is currently unsupported by Frama-C. _Complex is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input. [kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing) [kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:26: User Error: [kernel] c11-keywords.c:29: User Error:
_Imaginary is currently unsupported by Frama-C. _Imaginary is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input. [kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:33: User Error:
_Decimal32 is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:37: User Error:
__int128 is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input.
[kernel] Parsing c11-keywords.c (with preprocessing)
[kernel] c11-keywords.c:41: User Error:
__uint128_t is currently unsupported by Frama-C.
[kernel] Frama-C aborted: invalid user input.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment