History

feat: treat unknown macros with arguments as undefined

Jonathan M. Wilbur committed 2 years ago

Commit c85efac1 parent 08a4c522 files · +27 −0Browse files

Showing the changes to tests (1 of 2 files). Show all

Unified · Split

tests/undef_func_macro.c+13−0
@@ -0,0 +1,13 @@
1int main () {
2// This used to evaluate to 0 (0), which is invalid.
3// Now it should evaluate to 0.
4#if WUMBOED(WUMBO)
5#endif
6
7// Just trying a more complicated test case.
8#if WUMBO && defined(WUMBOLOGY) || WUMBOED(WUMBO) && !WUMBOLOGY
9 return 0;
10#elif WUMBO && defined(WUMBOLOGY) || WUMBOED(WUMBO) && !WUMBOLOGY
11 return 1;
12#endif
13}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t