From: Paul Robinson Date: Tue, 9 Jul 2019 20:49:07 +0000 (+0000) Subject: [CXX] Exercise all paths through these tests. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e04b532dfe2b477d052b89c27e1fdfbd6309323;p=platform%2Fupstream%2Fllvm.git [CXX] Exercise all paths through these tests. Differential Revision: https://reviews.llvm.org/D63894 llvm-svn: 365555 --- diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp index 781a1a1..65ccb75 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // C++03 [namespace.udecl]p4: diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp index b571370..0ed6a77 100644 --- a/clang/test/SemaCXX/class.cpp +++ b/clang/test/SemaCXX/class.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wc++11-compat %s -std=c++98 class C { public: auto int errx; // expected-error {{storage class specified for a member declaration}} diff --git a/clang/test/SemaCXX/linkage2.cpp b/clang/test/SemaCXX/linkage2.cpp index 6f43af3..3cc9f61 100644 --- a/clang/test/SemaCXX/linkage2.cpp +++ b/clang/test/SemaCXX/linkage2.cpp @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=gnu++11 %s -// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions -Wno-local-type-template-args %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions -Wno-local-type-template-args %s -std=gnu++98 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions -Wno-local-type-template-args -fmodules %s namespace test1 {