diff options
author | Zachary Turner <zturner@google.com> | 2017-11-16 18:26:20 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-11-16 18:26:20 +0000 |
commit | 5e420717a1c4d9b25c645362f92dc02ccf2c5977 (patch) | |
tree | e921704288f4fd9a5ce7904c3083bdd20fdce4c9 /debuginfo-tests/static-member.cpp | |
parent | 2139ed638b7c14eff603ba6b3a67753fe5020063 (diff) | |
download | bcm5719-llvm-5e420717a1c4d9b25c645362f92dc02ccf2c5977.tar.gz bcm5719-llvm-5e420717a1c4d9b25c645362f92dc02ccf2c5977.zip |
Resubmit "Refactor debuginfo-tests"
This was reverted due to some failures on specific darwin buildbots,
the issue being that the new lit configuration was not setting the
SDKROOT environment variable. We've tested a fix locally and confirmed
that it works, so this patch resubmits everything with the fix
applied.
llvm-svn: 318435
Diffstat (limited to 'debuginfo-tests/static-member.cpp')
-rw-r--r-- | debuginfo-tests/static-member.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/debuginfo-tests/static-member.cpp b/debuginfo-tests/static-member.cpp deleted file mode 100644 index 1d8ad62c5b8..00000000000 --- a/debuginfo-tests/static-member.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -o %t -c -// RUN: %clangxx %target_itanium_abi_host_triple %t -o %t.out -// RUN: %test_debuginfo %s %t.out - -// DEBUGGER: delete breakpoints -// DEBUGGER: break static-member.cpp:33 -// DEBUGGER: r -// DEBUGGER: ptype MyClass -// CHECK: {{struct|class}} MyClass { -// CHECK: static const int a; -// CHECK-NEXT: static int b; -// CHECK-NEXT: static int c; -// CHECK-NEXT: int d; -// CHECK-NEXT: } -// DEBUGGER: p MyClass::a -// CHECK: ${{[0-9]}} = 4 -// DEBUGGER: p MyClass::c -// CHECK: ${{[0-9]}} = 15 - -// PR14471, PR14734 - -class MyClass { -public: - const static int a = 4; - static int b; - static int c; - int d; -}; - -int MyClass::c = 15; -const int MyClass::a; - -int main() { - MyClass instance_MyClass; - return MyClass::a; -} |