Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
9c7a0edf
Commit
9c7a0edf
authored
Mar 17, 2016
by
Moritz Koenig
Browse files
Added some enumTests showing our program does the right thing in bb-history (194.log->195.log)
parent
5d1cff13
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/enumAndStuff/unusedEnumConstant.c
0 → 100644
View file @
9c7a0edf
enum
{
aa
,
bb
,
cc
};
{{
A
}}
enum
{
aa
,
bb
,
cc
,
dd
};
{{
B
}}
int
a
=
cc
;
/*
* check-name: Adding unused enum constatnt
* assert-ast: A == B
*/
test/enumAndStuff/unusedEnumConstant2.c
0 → 100644
View file @
9c7a0edf
typedef
enum
{
aa
,
bb
,
cc
}
e_type
;
{{
A
}}
typedef
enum
{
aa
,
bb
,
cc
,
dd
}
e_type
;
{{
B
}}
e_type
e
=
cc
;
/*
* check-name: Adding unused enum constatnt
* assert-ast: A != B
* obj-not-diff: yes
*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment