forked from goplus/llcppg
-
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.
llcppsigfetch:set underlying panic test case in goplus#61
- Loading branch information
1 parent
2e5f253
commit 0e93a4f
Showing
4 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
_xtool/llcppsigfetch/parse/cvt_test/complex_test/include_test/hfile/compact.h
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 @@ | ||
typedef gnutls_cipher_algorithm_t gnutls_cipher_algorithm; |
6 changes: 6 additions & 0 deletions
6
_xtool/llcppsigfetch/parse/cvt_test/complex_test/include_test/hfile/temp.h
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,6 @@ | ||
typedef enum gnutls_cipher_algorithm { | ||
GNUTLS_CIPHER_UNKNOWN = 0, | ||
GNUTLS_CIPHER_NULL = 1, | ||
} gnutls_cipher_algorithm_t; | ||
|
||
#include <compact.h> |
18 changes: 18 additions & 0 deletions
18
_xtool/llcppsigfetch/parse/cvt_test/complex_test/include_test/include.go
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,18 @@ | ||
package main | ||
|
||
import ( | ||
test "github.com/goplus/llcppg/_xtool/llcppsigfetch/parse/cvt_test" | ||
"github.com/goplus/llcppg/_xtool/llcppsymg/clangutils" | ||
) | ||
|
||
func main() { | ||
TestInclude() | ||
} | ||
|
||
func TestInclude() { | ||
test.RunTestWithConfig(&clangutils.Config{ | ||
File: "./hfile/temp.h", | ||
Temp: false, | ||
IsCpp: false, | ||
}) | ||
} |
97 changes: 97 additions & 0 deletions
97
_xtool/llcppsigfetch/parse/cvt_test/complex_test/include_test/llgo.expect
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,97 @@ | ||
#stdout | ||
{ | ||
"./hfile/temp.h": { | ||
"_Type": "File", | ||
"decls": [{ | ||
"_Type": "EnumTypeDecl", | ||
"Loc": { | ||
"_Type": "Location", | ||
"File": "./hfile/temp.h" | ||
}, | ||
"Doc": null, | ||
"Parent": null, | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "gnutls_cipher_algorithm" | ||
}, | ||
"Type": { | ||
"_Type": "EnumType", | ||
"Items": [{ | ||
"_Type": "EnumItem", | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "GNUTLS_CIPHER_UNKNOWN" | ||
}, | ||
"Value": { | ||
"_Type": "BasicLit", | ||
"Kind": 0, | ||
"Value": "0" | ||
} | ||
}, { | ||
"_Type": "EnumItem", | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "GNUTLS_CIPHER_NULL" | ||
}, | ||
"Value": { | ||
"_Type": "BasicLit", | ||
"Kind": 0, | ||
"Value": "1" | ||
} | ||
}] | ||
} | ||
}, { | ||
"_Type": "TypedefDecl", | ||
"Loc": { | ||
"_Type": "Location", | ||
"File": "./hfile/temp.h" | ||
}, | ||
"Doc": null, | ||
"Parent": null, | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "gnutls_cipher_algorithm_t" | ||
}, | ||
"Type": { | ||
"_Type": "TagExpr", | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "gnutls_cipher_algorithm" | ||
}, | ||
"Tag": 2 | ||
} | ||
}], | ||
"includes": [{ | ||
"_Type": "Include", | ||
"Path": "./hfile/compact.h" | ||
}], | ||
"macros": [] | ||
}, | ||
"./hfile/compact.h": { | ||
"_Type": "File", | ||
"decls": [{ | ||
"_Type": "TypedefDecl", | ||
"Loc": { | ||
"_Type": "Location", | ||
"File": "./hfile/compact.h" | ||
}, | ||
"Doc": null, | ||
"Parent": null, | ||
"Name": { | ||
"_Type": "Ident", | ||
"Name": "gnutls_cipher_algorithm" | ||
}, | ||
"Type": { | ||
"_Type": "Ident", | ||
"Name": "gnutls_cipher_algorithm_t" | ||
} | ||
}], | ||
"includes": [], | ||
"macros": [] | ||
} | ||
} | ||
|
||
|
||
#stderr | ||
|
||
#exit 0 |