diff options
Diffstat (limited to 'test/PCH/cxx-friends.cpp')
-rw-r--r-- | test/PCH/cxx-friends.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/PCH/cxx-friends.cpp b/test/PCH/cxx-friends.cpp index f7d45ce..9c75f92 100644 --- a/test/PCH/cxx-friends.cpp +++ b/test/PCH/cxx-friends.cpp @@ -3,7 +3,11 @@ // Test with pch. // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-friends.h -// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s -error-on-deserialized-decl doNotDeserialize + +// Test with modules. +// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-friends.h -fmodules +// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s -error-on-deserialized-decl doNotDeserialize -fmodules // expected-no-diagnostics @@ -21,3 +25,5 @@ public: } }; int k = PR12585::future_base::setter<int>().f(); + +Lazy::S *p; |