mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Fix -verify static assert messages for older Clang versions
llvm-svn: 324529
This commit is contained in:
parent
421fdaa121
commit
ebf8a0985f
@ -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}}
|
||||
}
|
||||
}
|
||||
|
@ -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}}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user