brintos

brintos / llvm-project-archived public Read only

0
0
Text · 355 B · 93ab82c Raw
25 lines · cpp
1// Test with pch.2// RUN: %clang_cc1 -emit-pch -std=c++17  -o %t %s3// RUN: %clang_cc1 -include-pch %t -emit-llvm -std=c++17 -o - %s4 5#ifndef HEADER6#define HEADER7 8namespace RP47219 {9typedef int MyInt;10template <typename T>11class Some {12 public:13  explicit Some(T, MyInt) {}14};15 16struct Foo {};17void ParseNatural() {18  Some(Foo(), 1);19}20}21 22#else23 24#endif25