Skip to content

Commit

Permalink
address reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeaseen committed Dec 6, 2024
1 parent 525f047 commit 42aa3f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/enums/src/enum_compound.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

typedef enum {
b=2
B = 2
} a;

void entry6(const unsigned buffer_size, int buffer[]){
if (buffer_size < 1) { return; }
void entry6(const unsigned buffer_size, int buffer[]) {
if (buffer_size < 1) {
return;
}

// Using a compound literal with enum to assign the value
buffer[0] = (a){b};

buffer[0] = (a) { B };
}

0 comments on commit 42aa3f7

Please sign in to comment.