-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add typing-c package to haskell-ci.yml
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
|
||
typedef unsigned long long my_custom_type; | ||
|
||
my_custom_type testFn1(my_custom_type x) { | ||
return x; | ||
} | ||
|
||
/* | ||
int myAddition (my_custom_type x, my_custom_type y); | ||
int myAddition (my_custom_type x, my_custom_type y) { | ||
(void)(+(x+y)); | ||
return 1; | ||
} | ||
#include <stddef.h> | ||
#define bool _Bool | ||
typedef struct { void **unused; } ty_1; | ||
typedef struct { void **unused; } ty_2; | ||
typedef unsigned long long mooly; | ||
int testFunction (float *x_0, float *x_1) { | ||
(void)(x_0-x_1); | ||
return 0; | ||
} | ||
int myAddition (mooly x, mooly y) { | ||
(void)(x+y); | ||
return 1; | ||
} | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
TranslationUnitDecl 0x20f9cf50288 <<invalid sloc>> <invalid sloc> | ||
|-TypedefDecl 0x20f9cf50ab0 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128' | ||
| `-BuiltinType 0x20f9cf50850 '__int128' | ||
|-TypedefDecl 0x20f9cf50b20 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128' | ||
| `-BuiltinType 0x20f9cf50870 'unsigned __int128' | ||
|-TypedefDecl 0x20f9cf50e28 <<invalid sloc>> <invalid sloc> implicit __NSConstantString 'struct __NSConstantString_tag' | ||
| `-RecordType 0x20f9cf50c00 'struct __NSConstantString_tag' | ||
| `-Record 0x20f9cf50b78 '__NSConstantString_tag' | ||
|-TypedefDecl 0x20f9cf50ec0 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *' | ||
| `-PointerType 0x20f9cf50e80 'char *' | ||
| `-BuiltinType 0x20f9cf50330 'char' | ||
|-TypedefDecl 0x20f9cf50f30 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list 'char *' | ||
| `-PointerType 0x20f9cf50e80 'char *' | ||
| `-BuiltinType 0x20f9cf50330 'char' | ||
|-TypedefDecl 0x20f9cf50fa0 <typing-c\test.c:3:1, col:28> col:28 referenced my_custom_type 'unsigned long long' | ||
| `-BuiltinType 0x20f9cf50470 'unsigned long long' | ||
`-FunctionDecl 0x20f9cf51128 <line:5:1, line:7:1> line:5:16 testFn1 'my_custom_type (my_custom_type)' | ||
|-ParmVarDecl 0x20f9cf51030 <col:24, col:39> col:39 used x 'my_custom_type':'unsigned long long' | ||
`-CompoundStmt 0x20f9cf51260 <col:42, line:7:1> | ||
`-ReturnStmt 0x20f9cf51250 <line:6:3, col:10> | ||
`-ImplicitCastExpr 0x20f9cf51238 <col:10> 'my_custom_type':'unsigned long long' <LValueToRValue> | ||
`-DeclRefExpr 0x20f9cf51218 <col:10> 'my_custom_type':'unsigned long long' lvalue ParmVar 0x20f9cf51030 'x' 'my_custom_type':'unsigned long long' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters