]> granicus.if.org Git - clang/commitdiff
Test case for emitting va_arg as l-value; apparently I only *thought* I had committed...
authorDaniel Dunbar <daniel@zuster.org>
Thu, 12 Feb 2009 08:41:10 +0000 (08:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 12 Feb 2009 08:41:10 +0000 (08:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64368 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/struct.c

index 208cbd5ca9d05079cee2fa599e6bf9213c2675cb..4b0cc3e79ea204961b34f56de8c65af2e7b4cf96 100644 (file)
@@ -157,6 +157,7 @@ int f14(int i, ...) {
   __builtin_va_list l;
   __builtin_va_start(l,i);
   a13 b = __builtin_va_arg(l, a13);
+  int c = __builtin_va_arg(l, a13).c;
   return b.b;
 }