From: Rafael Espindola Date: Thu, 4 Jul 2013 14:25:25 +0000 (+0000) Subject: Replace void with int to make this a valid C++ file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e805906ec1ba090bb6aebe630458ff817aaf995;p=clang Replace void with int to make this a valid C++ file. The test was passing because clang would still print the ast before exiting with an error. Since that didn't seem to be the intent of the test, I change the test instead of adding 'not' to the command line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185634 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/dcl.dcl/dcl.link/p7-2.cpp b/test/CXX/dcl.dcl/dcl.link/p7-2.cpp index 40f61c6445..1e8f39338c 100644 --- a/test/CXX/dcl.dcl/dcl.link/p7-2.cpp +++ b/test/CXX/dcl.dcl/dcl.link/p7-2.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ast-print -o - %s | FileCheck %s -extern "C" void f(void); -// CHECK: extern "C" void f() +extern "C" int f(void); +// CHECK: extern "C" int f() -extern "C" void v; -// CHECK: extern "C" void v +extern "C" int v; +// CHECK: extern "C" int v