llvm-capstone/clang/test/Modules/static_assert.cpp
Richard Trieu ffa532d7a1 Fix interaction between serialization and c++1z feature.
In c++1z, static_assert is not required to have a StringLiteral message, where
previously it was required.  Update the AST Reader to be able to handle a
null StringLiteral.

llvm-svn: 281286
2016-09-13 01:20:40 +00:00

9 lines
212 B
C++

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fimplicit-module-maps \
// RUN: -I%S/Inputs/static_assert -std=c++1z -verify %s
// expected-no-diagnostics
#include "a.h"
S s;