Skip to content

Commit

Permalink
Add test for C99 fixed int width
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Apr 1, 2022
1 parent 8d9c4f2 commit 9e3b8c6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/small1/c99-fixed-width-int.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#include<inttypes.h>
int main() {
int8_t i;
int16_t j;
int32_t h;
int64_t k;
int_fast8_t fi;
int_fast16_t fj;
int_fast32_t fh;
int_fast64_t fk;
int_least8_t li;
int_least16_t lj;
int_least32_t lk;
int_least64_t li;
intmax_t m;
intptr_t p;

uint8_t ui;
uint16_t uj;
uint32_t uh;
uint64_t uk;
uint_fast8_t ufi;
uint_fast16_t ufj;
uint_fast32_t ufh;
uint_fast64_t ufk;
uint_least8_t uli;
uint_least16_t ulj;
uint_least32_t ulk;
uint_least64_t uli;
uintmax_t um;
uintptr_t up;


}
1 change: 1 addition & 0 deletions test/testcil.pl
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ sub addToGroup {

addTest("testrunc99/c99-tgmath");
addTest("testrunc99/c99-float-pragma");
addTest("testrunc99/c99-fixed-width-int");
addTest("combinec99inline");
addBadComment("combinec99inline", "C99 inline semantic not fully supported.");

Expand Down

0 comments on commit 9e3b8c6

Please sign in to comment.