Guest User

Untitled

a guest
Aug 7th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. // following code compiles:
  2.  
  3. typedef struct {uint8_t x;} structType;
  4. void setup() {}
  5. void myFunc(structType structInstance){}
  6. void loop() {}
  7.  
  8. // following code doesn't:
  9.  
  10. void setup() {}
  11. typedef struct {uint8_t x;} structType;
  12. void myFunc(structType structInstance){}
  13. void loop() {}
  14.  
  15. // "test:4:13: error: variable or field 'myFunc' declared void"
Add Comment
Please, Sign In to add comment