Fix -verify static assert messages for older Clang versions

llvm-svn: 324529
This commit is contained in:
Eric Fiselier 2018-02-07 21:25:25 +00:00
parent 421fdaa121
commit ebf8a0985f
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ int main() {
typedef double T;
typedef std::array<const T, 0> C;
C c = {};
// expected-error-re@array:* {{static_assert failed {{.*}} "cannot fill zero-sized array of type 'const T'"}}
// expected-error-re@array:* {{static_assert failed {{.*}}"cannot fill zero-sized array of type 'const T'"}}
c.fill(5.5); // expected-note {{requested here}}
}
}

View File

@ -24,7 +24,7 @@ int main() {
typedef std::array<const T, 0> C;
C c = {};
C c2 = {};
// expected-error-re@array:* {{static_assert failed {{.*}} "cannot swap zero-sized array of type 'const T'"}}
// expected-error-re@array:* {{static_assert failed {{.*}}"cannot swap zero-sized array of type 'const T'"}}
c.swap(c2); // expected-note {{requested here}}
}
}