Skip to content

Commit

Permalink
make external linkage case test what it claims to test
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsandler committed Oct 21, 2024
1 parent 88a3bed commit 3633ab6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ int sum(int x, int y);


int add_three_and_four(void) {
int f = 3;
if (f > 2) {
/* Define a sum variable shadowing the sum function */
int sum = 3;
if (sum > 2) {
/* The extern keyword can bring a shadowed
* function identifier back into scope
*/
Expand Down

0 comments on commit 3633ab6

Please sign in to comment.