forked from OSchip/llvm-project
				
			Make front-end debug info namespace test frontend-only & more specific without overconstraining it
The backend portion of this test will be committed to LLVM's test suite. llvm-svn: 177485
This commit is contained in:
		
							parent
							
								
									452ba13271
								
							
						
					
					
						commit
						e60814dac0
					
				| 
						 | 
				
			
			@ -1,12 +1,9 @@
 | 
			
		|||
// RUN: %clang  -g -S -fverbose-asm %s -o - | FileCheck %s
 | 
			
		||||
// RUN: %clang  -g -S -emit-llvm %s -o - | FileCheck %s
 | 
			
		||||
 | 
			
		||||
// CHECK: TAG_namespace
 | 
			
		||||
namespace A {
 | 
			
		||||
  enum numbers {
 | 
			
		||||
    ZERO,
 | 
			
		||||
    ONE
 | 
			
		||||
  };
 | 
			
		||||
int i;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
using namespace A;
 | 
			
		||||
numbers n;
 | 
			
		||||
// CHECK: [[FILE:![0-9]*]] = {{.*}} ; [ DW_TAG_file_type ] [{{.*}}/test/CodeGenCXX/debug-info-namespace.cpp]
 | 
			
		||||
// CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
 | 
			
		||||
// CHECK: [[NS]] = {{.*}}, metadata [[FILE]], {{.*}} ; [ DW_TAG_namespace ] [A] [line 3]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue