[cfe-dev] Union oddity

Sanghyeon Seo sanxiyn at gmail.com
Sun Dec 2 06:34:08 PST 2007


This crashes. I'm not sure what's going on...

// RUN: clang -emit-llvm %s

typedef union { int i; int *j; } value;

int get_value(value v) {
  return *v.j;
}

-- 
Seo Sanghyeon



More information about the cfe-dev mailing list