xref: /llvm-project/clang/test/CodeGenCXX/debug-info-namespace.cpp (revision e60814dac0839430764acca2b6739e8fe2ee173f)
1 // RUN: %clang  -g -S -emit-llvm %s -o - | FileCheck %s
2 
3 namespace A {
4 int i;
5 }
6 
7 // CHECK: [[FILE:![0-9]*]] = {{.*}} ; [ DW_TAG_file_type ] [{{.*}}/test/CodeGenCXX/debug-info-namespace.cpp]
8 // CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
9 // CHECK: [[NS]] = {{.*}}, metadata [[FILE]], {{.*}} ; [ DW_TAG_namespace ] [A] [line 3]
10