12 lines
		
	
	
		
			265 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			265 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wunused -verify %s
 | |
| // expected-no-diagnostics
 | |
| 
 | |
| static int foo(int x) { return x; }
 | |
| 
 | |
| template<typename T>
 | |
| T get_from_foo(T y) { return foo(y); }
 | |
| 
 | |
| int g(int z) { return get_from_foo(z); }
 | |
| 
 | |
| namespace { void f() = delete; }
 | 
