Commit 00f95f8
committed
C front-end: address-of-label is a compile-time constant
When using computed gotos, the addresses of labels are taken. These are
compile-time constants that are safe to use in initializers of objects
with static lifetime.1 parent f02532a commit 00f95f8
File tree
2 files changed
+3
-1
lines changed- regression/cbmc/Computed-Goto1
- src/ansi-c
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4520 | 4520 | | |
4521 | 4521 | | |
4522 | 4522 | | |
| 4523 | + | |
| 4524 | + | |
4523 | 4525 | | |
4524 | 4526 | | |
4525 | 4527 | | |
| |||
0 commit comments