[llvm-commits] [llvm] r127941 - /llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c
Devang Patel
dpatel at apple.com
Fri Mar 18 18:40:44 PDT 2011
Author: dpatel
Date: Fri Mar 18 20:40:43 2011
New Revision: 127941
URL: http://llvm.org/viewvc/llvm-project?rev=127941&view=rev
Log:
Test case for r127940.
Added:
llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c
Added: llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c?rev=127941&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c (added)
+++ llvm/trunk/test/FrontendC/2011-03-18-StructReturn.c Fri Mar 18 20:40:43 2011
@@ -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();
+}
+
+
More information about the llvm-commits
mailing list