Make one of the new tests fail correctly on pre-C++17 systems

llvm-svn: 286872
This commit is contained in:
Marshall Clow 2016-11-14 19:35:34 +00:00
parent 4fef68cb8d
commit 10e59fac3e
1 changed files with 6 additions and 0 deletions

View File

@ -14,7 +14,13 @@
#include <memory>
#include <cassert>
#include "test_macros.h"
int main()
{
#if TEST_STD_VER > 14
const int *p = std::addressof<const int>(0);
#else
#error
#endif
}