Attempt to fix test on Windows after r360998

llvm-svn: 361054
This commit is contained in:
Nico Weber 2019-05-17 17:33:54 +00:00
parent 9da9ed5352
commit 762b3ef078
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s
typedef __SIZE_TYPE__ size_t;
namespace basic {
// Ensuring that __bos can be used in constexpr functions without anything
// sketchy going on...
@ -102,5 +104,5 @@ namespace InvalidBase {
// Ensure this doesn't crash.
struct S { const char *name; };
S invalid_base();
constexpr long bos_name = __builtin_object_size(invalid_base().name, 1);
constexpr size_t bos_name = __builtin_object_size(invalid_base().name, 1);
}