Skip to content

Instantly share code, notes, and snippets.

@shhyou
Forked from b4284/test.c
Last active November 6, 2015 01:55
Show Gist options
  • Save shhyou/e007361a88e7ba89a92d to your computer and use it in GitHub Desktop.
Save shhyou/e007361a88e7ba89a92d to your computer and use it in GitHub Desktop.
struct S { int i; };
S s;
S& func1() { return s; }
S func2() { return s; }
int main() {
func1() = {5};
func2() = {5};
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment