]> granicus.if.org Git - clang/commitdiff
Fix a test.
authorAnders Carlsson <andersca@mac.com>
Sat, 11 Jul 2009 01:00:52 +0000 (01:00 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 11 Jul 2009 01:00:52 +0000 (01:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75327 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/auto-cxx0x.cpp

index 33156ef23d2e84ad5c632127dc1add8549fef4b2..aa92bbe4f1f1784dcebed44d1e8ee093d5b8cad1 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
 void f() {
-  auto int a; // expected-error{{cannot combine with previous 'auto' declaration specifier}}
+  auto int a; // expected-error{{cannot combine with previous 'auto' declaration specifier}} // expected-error{{declaration of variable 'a' with type 'auto' requires an initializer}}
   int auto b; // expected-error{{cannot combine with previous 'int' declaration specifier}}
 }