Mercurial > hg > CbC > CbC_llvm
view clang/test/AST/template-implicit-vars.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// Test without serialization: // RUN: %clang_cc1 -fsyntax-only %s -std=c++11 -ast-dump | FileCheck %s // // Test with serialization: // RUN: %clang_cc1 -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -ast-dump-all /dev/null \ // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \ // RUN: | FileCheck %s template<typename T> void f(T t) { T a[] = {t}; for (auto x : a) {} } void g() { f(1); } // CHECK: VarDecl {{.*}} implicit used __range // CHECK: VarDecl {{.*}} implicit used __range // CHECK: VarDecl {{.*}} implicit used __begin // CHECK: VarDecl {{.*}} implicit used __end