Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Interpreter / stmt-serialization.cpp
blob4d97a3dc5c64c349b585b4f888cccfd01e516ef6
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -std=c++20 -fincremental-extensions -fmodules-cache-path=%t \
3 // RUN: -x c++ %s -verify
4 // expected-no-diagnostics
6 #pragma clang module build TopLevelStmt
7 module TopLevelStmt { module Statements {} }
8 #pragma clang module contents
10 #pragma clang module begin TopLevelStmt.Statements
11 extern "C" int printf(const char*,...);
12 int i = 0;
13 i++;
14 #pragma clang module end /*TopLevelStmt.Statements*/
15 #pragma clang module endbuild /*TopLevelStmt*/
17 #pragma clang module import TopLevelStmt.Statements
19 printf("Value of i is '%d'", i);