blob: 0d18325580a7a71c44e510980e5c71a2f24c6b35 [file] [log] [blame]
Davide Italiano5d29dee2016-03-06 04:20:05 +00001// 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
9module A [system {
10 header "Inputs/empty.h"
11 private header "Inputs/empty.h"
12}