diff --git a/test/FrontendC/2011-03-18-StructReturn.c b/test/FrontendC/2011-03-18-StructReturn.c new file mode 100644 index 00000000000..1579a635497 --- /dev/null +++ b/test/FrontendC/2011-03-18-StructReturn.c @@ -0,0 +1,17 @@ +// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s +// Radar 9156771 +typedef struct RGBColor { + unsigned short red; + unsigned short green; + unsigned short blue; +} RGBColor; + +RGBColor func(); + +RGBColor X; +void foo() { +//CHECK: store i48 + X = func(); +} + +