1 // RUN: rm -rf %t 2 // RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27401 -verify %s 3 // RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27401/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR27401 -verify %s 4 // RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27401/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR27401 -verify %s -triple i686-windows 5 6 #include "a.h" 7 #define _LIBCPP_VECTOR 8 template <class, class _Allocator> 9 class __vector_base { 10 protected: 11 _Allocator __alloc() const; 12 __vector_base(_Allocator); 13 }; 14 15 template <class _Tp, class _Allocator = allocator> 16 class vector : __vector_base<_Tp, _Allocator> { 17 public: 18 vector() noexcept(is_nothrow_default_constructible<_Allocator>::value); 19 vector(const vector &); 20 vector(vector &&) 21 noexcept(is_nothrow_move_constructible<_Allocator>::value); 22 }; 23 24 template <class _Tp, class _Allocator> vector(const vector & __x)25vector<_Tp, _Allocator>::vector(const vector &__x) : __vector_base<_Tp, _Allocator>(__x.__alloc()) {} 26 27 struct CommentOptions { 28 vector<char> ParseAllComments; CommentOptionsCommentOptions29 CommentOptions() {} 30 }; 31 struct PrintingPolicy { PrintingPolicyPrintingPolicy32 PrintingPolicy(CommentOptions LO) : LangOpts(LO) {} 33 CommentOptions LangOpts; 34 }; 35 36 #include "b.h" fn1()37CommentOptions fn1() { return fn1(); } 38 39 // expected-no-diagnostics 40