From a069527e0e8b8ffb1503478d6ba28ef87fdfe5c4 Mon Sep 17 00:00:00 2001 From: Charles Li Date: Wed, 1 Mar 2017 17:55:03 +0000 Subject: [PATCH] [Test] NFC: Fixed typo in comments Changed "declerations" to "declarations" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296648 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Modules/Inputs/merge-using-decls/b.h | 4 ++-- test/Modules/merge-using-decls.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Modules/Inputs/merge-using-decls/b.h b/test/Modules/Inputs/merge-using-decls/b.h index 5bad68d2d5..5d112ffbfe 100644 --- a/test/Modules/Inputs/merge-using-decls/b.h +++ b/test/Modules/Inputs/merge-using-decls/b.h @@ -29,7 +29,7 @@ template struct D : X, T { using typename X::t; }; -#if __cplusplus <= 199711L // C++11 does not allow access declerations +#if __cplusplus <= 199711L // C++11 does not allow access declarations template struct E : X, T { // Mismatch in using/access-declaration-ness. T::value; @@ -49,7 +49,7 @@ template struct F : X, T { typedef C::type I; typedef D::t I; -#if __cplusplus <= 199711L // C++11 does not allow access declerations +#if __cplusplus <= 199711L // C++11 does not allow access declarations typedef E::type I; #endif diff --git a/test/Modules/merge-using-decls.cpp b/test/Modules/merge-using-decls.cpp index 019a69fe25..1ec9a9a17b 100644 --- a/test/Modules/merge-using-decls.cpp +++ b/test/Modules/merge-using-decls.cpp @@ -28,7 +28,7 @@ template int Use() { } template int UseAll() { -#if __cplusplus <= 199711L // C++11 does not allow access declerations +#if __cplusplus <= 199711L // C++11 does not allow access declarations return Use >() + Use >() + Use >() + Use >(); // expected-note 0-2{{instantiation of}} #else return Use >() + Use >() + Use >(); // expected-note 0-2{{instantiation of}} @@ -45,7 +45,7 @@ template int UseAll(); // Here, we're instantiating the definition from 'A' and merging the definition // from 'B' into it. -#if __cplusplus <= 199711L // C++11 does not allow access declerations +#if __cplusplus <= 199711L // C++11 does not allow access declarations // expected-error@b.h:* {{'E::value' from module 'B' is not present in definition of 'E' in module 'A'}} // expected-error@b.h:* {{'E::v' from module 'B' is not present in definition of 'E' in module 'A'}} #endif @@ -65,7 +65,7 @@ template int UseAll(); // expected-error@b.h:* 2{{'typename' keyword used on a non-type}} // expected-error@b.h:* 2{{dependent using declaration resolved to type without 'typename'}} -#if __cplusplus <= 199711L // C++11 does not allow access declerations +#if __cplusplus <= 199711L // C++11 does not allow access declarations // expected-error@a.h:* {{'E::type' from module 'A' is not present in definition of 'E' in module 'B'}} // expected-error@a.h:* {{'E::t' from module 'A' is not present in definition of 'E' in module 'B'}} // expected-error@a.h:* {{'E::value' from module 'A' is not present in definition of 'E' in module 'B'}} -- 2.40.0