diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
| commit | 5e20cdd81c44a443562a09007668ffdf76c455af (patch) | |
| tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /test/CodeGenCXX/implicit-record-visibility.cpp | |
| parent | d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/implicit-record-visibility.cpp')
| -rw-r--r-- | test/CodeGenCXX/implicit-record-visibility.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/implicit-record-visibility.cpp b/test/CodeGenCXX/implicit-record-visibility.cpp new file mode 100644 index 000000000000..701a2031edf5 --- /dev/null +++ b/test/CodeGenCXX/implicit-record-visibility.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -I%S -fvisibility hidden -triple x86_64-linux-gnu -emit-llvm -o - | FileCheck %s + +#include <stdarg.h> +#include <typeinfo> + +// If struct __va_list_tag did not explicitly have default visibility, then +// under -fvisibility hidden the type of function f, due to its va_list (aka +// __builtin_va_list, aka __va_list_tag (*)[1]) parameter would be hidden: + +// CHECK: @_ZTSFvP13__va_list_tagE = linkonce_odr constant +// CHECK: @_ZTIFvP13__va_list_tagE = linkonce_odr constant +void f(va_list) { (void)typeid(f); } |
