]> granicus.if.org Git - clang/commitdiff
Add coverage of part of getPrimaryDecl that was failing prior to
authorDaniel Dunbar <daniel@zuster.org>
Tue, 21 Oct 2008 21:32:38 +0000 (21:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 21 Oct 2008 21:32:38 +0000 (21:32 +0000)
previous commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57930 91177308-0d34-0410-b5e6-96231b3b80d8

test/Coverage/c-language-features.inc

index ec8dd631beb20dc8accbb5e342f27aaa8e7db7d5..6944b9d65e9ffca61267f2151c8b9c05bf97c789 100644 (file)
@@ -126,6 +126,7 @@ void f4(int a0, int a1, int a2, va_list ap) {
   
   struct { char f0[10]; } *t28;
   int t29 = t28 - t28;
+  char *t30 = &t28->f0[1];
 }
 
 // Extended vectors
@@ -139,7 +140,7 @@ void f5() {
 }
 
 void f6() {
-  char *s0 = __func__;
-  char *s1 = __FUNCTION__;
-  char *s2 = __PRETTY_FUNCTION__;
+  const char *s0 = __func__;
+  const char *s1 = __FUNCTION__;
+  const char *s2 = __PRETTY_FUNCTION__;
 }