]> granicus.if.org Git - clang/commitdiff
Forgot to commit this change with r223975
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 23:08:43 +0000 (23:08 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 23:08:43 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223979 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/anonymous-union.cpp

index 3b568fd8704f16d20a1219f616583b5daad80fed..46d426cf0c0f51f1bedf5d6a0f0418fe34c09a74 100644 (file)
@@ -80,12 +80,12 @@ union { // expected-error{{anonymous unions at namespace or global scope must be
 };
 
 static union {
-  int int_val2;
+  int int_val2; // expected-note{{previous definition is here}}
   float float_val2;
 };
 
 void PR21858() {
-  void int_val2();
+  void int_val2(); // expected-error{{redefinition of 'int_val2' as different kind of symbol}}
 }
 
 void f() {