Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Forked from ridiculousfish/gist:7017899
Last active December 25, 2015 18:39
Show Gist options
  • Save KamilaBorowska/7022640 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/7022640 to your computer and use it in GitHub Desktop.
Some fun with creduce
#include <string>
struct A {
std::string text;
int val;
};
struct B {
int val;
int padding[];
};
struct C {
int field2;
long aligner;
int func_param;
void m_fn1(B p1...) {
func_param && this->field2;
A a;
a.val = p1.val;
}
};
int main() {
B b;
C p;
p.m_fn1(b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment