summaryrefslogtreecommitdiff
path: root/test/FrontendC/2003-10-02-UnionLValueError.c
blob: a4d17a4a0ba5e0061abd3943ddcda297c6658f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null

#include <stdio.h>

union U{
  int i[8];
  char s[80];
};

void format_message(char *buffer, union U *u) {
  sprintf(buffer, u->s);
}