brintos

brintos / llvm-project-archived public Read only

0
0
Text · 710 B · 96fb553 Raw
24 lines · c
1// RUN: %clang_cc1 -Wdate-time -Wno-builtin-macro-redefined %s -verify -E2// RUN: %clang_cc1 -Wdate-time -Wno-builtin-macro-redefined %s -DIS_SYSHEADER -verify -E3// RUN: not %clang_cc1 -Werror=date-time -Wno-builtin-macro-redefined %s -DIS_SYSHEADER -E 2>&1 | grep 'error: expansion' | count 34 5 6#ifdef IS_HEADER7 8#ifdef IS_SYSHEADER9#pragma clang system_header10#endif11 12__TIME__ // expected-warning {{expansion of date or time macro is not reproducible}}13__DATE__  // expected-warning {{expansion of date or time macro is not reproducible}}14__TIMESTAMP__ // expected-warning {{expansion of date or time macro is not reproducible}}15 16#define __TIME__17__TIME__18 19#else20 21#define IS_HEADER22#include __FILE__23#endif24