blob: e354ef0a73818e15ab310e4dd50b8cb53ae9f32a [file] [log] [blame]
David Blaikief1b382e2014-04-06 17:14:06 +00001// RUN: %clang -g -std=c++11 -S -emit-llvm %s -o - | FileCheck %s
2
3template<typename T>
4struct foo {
5};
6namespace x {
7// splitting these over multiple lines to make sure the right token is used for
8// the location
9template<typename T>
10using
11# 42
12bar
13= foo<T*>;
14}
15
16// CHECK: metadata [[BINT:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [bi]
17// CHECK: [[BINT]] = {{.*}} ; [ DW_TAG_typedef ] [bar<int>] [line 42
18x::bar<int> bi;
19// CHECK: metadata [[BFLOAT:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [bf]
20// CHECK: [[BFLOAT]] = {{.*}} ; [ DW_TAG_typedef ] [bar<float>] [line 42
21x::bar<float> bf;
22
23using
24// metadata [[NARF:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [n]
25narf // [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line [[@LINE]]
26= int;
27narf n;
28