1 | // RUN: rm -rf %t.modules |
---|---|
2 | // RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t.modules \ |
3 | // RUN: -fmodule-map-file=%s -I%S -include "Inputs/empty.h" \ |
4 | // RUN: -fsyntax-only -x c++ /dev/null 2>&1 | FileCheck %s |
5 | |
6 | // CHECK: error: expected ']' to close attribute |
7 | // CHECK-NOT: error: expected '{' to start module 'A' |
8 | |
9 | module A [system { |
10 | header "Inputs/empty.h" |
11 | private header "Inputs/empty.h" |
12 | } |
13 |